class ContentFixtures extends BaseFixture implements DependentFixtureInterface, FixtureGroupInterface (View source)

Methods

void
flushReferencesIndex()

During unit-tests, the fixtures are ran multiple times. Flush the in-memory index, to prevent stale links to missing references.

getRandomReference(string $entityName)

No description

array
getRandomTaxonomies(string $type, int $amount)

No description

Collection
getImagesIndex($path)

No description

bool
getOption(string $name)

No description

__construct(Config $config, FileLocations $fileLocations, string $defaultLocale)

No description

getDependencies()

No description

static array
getGroups()

No description

void
load(ObjectManager $manager)

No description

Details

protected void flushReferencesIndex()

During unit-tests, the fixtures are ran multiple times. Flush the in-memory index, to prevent stale links to missing references.

Return Value

void

protected getRandomReference(string $entityName)

Parameters

string $entityName

protected array getRandomTaxonomies(string $type, int $amount)

Parameters

string $type
int $amount

Return Value

array

protected Collection getImagesIndex($path)

Parameters

$path

Return Value

Collection

protected bool getOption(string $name)

Parameters

string $name

Return Value

bool

__construct(Config $config, FileLocations $fileLocations, string $defaultLocale)

Parameters

Config $config
FileLocations $fileLocations
string $defaultLocale

getDependencies()

static array getGroups()

Return Value

array

void load(ObjectManager $manager)

Parameters

ObjectManager $manager

Return Value

void