final class ConfigurationBasedContentDimensionSource implements ContentDimensionSourceInterface (View source)

The configuration based content dimension source

Constants

CONSTRAINT_IDENTIFIER_WILDCARD

Properties

protected array<string,mixed> $dimensionConfiguration

Needs to stay protected as long as we need to be able to reset it via ObjectAccess

protected ContentDimension> $contentDimensions

Needs to stay protected as long as we need to be able to reset it via ObjectAccess

Methods

__construct(array $dimensionConfiguration)

No description

void
initializeDimensions()

No description

void
extractDimensionValuesAndVariations(string $rawValue, array $values, array $variationEdges, array $configuration, ContentDimensionValue|null $generalization, ContentDimensionValueSpecializationDepth $specializationDepth)

No description

ContentDimension|null
getDimension(ContentDimensionId $dimensionId)

No description

array

Details

__construct(array $dimensionConfiguration)

No description

Parameters

array $dimensionConfiguration

protected void extractDimensionValuesAndVariations(string $rawValue, array $values, array $variationEdges, array $configuration, ContentDimensionValue|null $generalization, ContentDimensionValueSpecializationDepth $specializationDepth)

No description

Parameters

string $rawValue
array $values
array $variationEdges
array $configuration
ContentDimensionValue|null $generalization
ContentDimensionValueSpecializationDepth $specializationDepth

Return Value

void

Exceptions

ContentDimensionValueIsInvalid

ContentDimension|null getDimension(ContentDimensionId $dimensionId)

No description

Parameters

ContentDimensionId $dimensionId

Return Value

ContentDimension|null

Exceptions

ContentDimensionIdIsInvalid
ContentDimensionValueIsInvalid
ContentDimensionValueSpecializationDepthIsInvalid
ContentDimensionValuesAreInvalid