class DimensionValues implements FilterInterface (View source)

Filter nodes by their dimensions.

Properties

protected ContentDimensionRepository $contentDimensionRepository
protected array $dimensionValues

The array of dimension values to filter for.

protected bool $filterForDefaultDimensionValues

Overrides the given dimensionValues with dimension defaults.

Methods

setDimensionValues(array $dimensionValues)

No description

setFilterForDefaultDimensionValues(bool $filterForDefaultDimensionValues)

No description

bool
matches(NodeData $node)

Returns true if the given node has the default dimension values.

Details

setDimensionValues(array $dimensionValues)

No description

Parameters

array $dimensionValues

setFilterForDefaultDimensionValues(bool $filterForDefaultDimensionValues)

No description

Parameters

bool $filterForDefaultDimensionValues

bool matches(NodeData $node)

Returns true if the given node has the default dimension values.

Parameters

NodeData $node

Return Value

bool