class FakeContentDimensionSourceFactory implements ContentDimensionSourceFactoryInterface (View source)

Fake factory for testing. Note that the factory MUST be initialised BEFORE the content repository is fetched.

Any changes after initialing a cr are lost UNLESS the content repository is rebuild.

Methods

build(ContentRepositoryId $contentRepositoryId, array $options)

No description

static void
setContentDimensionSource(ContentDimensionSourceInterface $contentDimensionSource)

No description

static void
setWithoutDimensions()

Configures a zero-dimensional content repository

getDimension(ContentDimensionId $dimensionId)

No description

array

Details

ContentDimensionSourceInterface build(ContentRepositoryId $contentRepositoryId, array $options)

No description

Parameters

ContentRepositoryId $contentRepositoryId
array $options

Return Value

ContentDimensionSourceInterface

static void setContentDimensionSource(ContentDimensionSourceInterface $contentDimensionSource)

No description

Parameters

ContentDimensionSourceInterface $contentDimensionSource

Return Value

void

static void setWithoutDimensions()

Configures a zero-dimensional content repository

Return Value

void

ContentDimension|null getDimension(ContentDimensionId $dimensionId)

No description

Parameters

ContentDimensionId $dimensionId

Return Value

ContentDimension|null

array getContentDimensionsOrderedByPriority()

No description

Return Value

array