PHP Class Neos\ContentRepository\Migration\Transformations\AddDimensions

Inheritance: extends AbstractTransformation
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$addDefaultDimensionValues boolean Adds the default dimension values for all dimensions that were not given.
$contentDimensionRepository Neos\ContentRepository\Domain\Repository\ContentDimensionRepository
$dimensionValues array If you omit a configured dimension this transformation will add the default value for that dimension.

Public Methods

Method Description
execute ( NodeData $node ) : void Add dimensions to the node.
setAddDefaultDimensionValues ( boolean $addDefaultDimensionValues )
setDimensionValues ( array $dimensionValues )

Method Details

execute() public method

Add dimensions to the node.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
return void

setAddDefaultDimensionValues() public method

public setAddDefaultDimensionValues ( boolean $addDefaultDimensionValues )
$addDefaultDimensionValues boolean

setDimensionValues() public method

public setDimensionValues ( array $dimensionValues )
$dimensionValues array

Property Details

$addDefaultDimensionValues protected_oe property

Adds the default dimension values for all dimensions that were not given.
protected bool $addDefaultDimensionValues
return boolean

$contentDimensionRepository protected_oe property

protected ContentDimensionRepository,Neos\ContentRepository\Domain\Repository $contentDimensionRepository
return Neos\ContentRepository\Domain\Repository\ContentDimensionRepository

$dimensionValues protected_oe property

If you omit a configured dimension this transformation will add the default value for that dimension.
protected array $dimensionValues
return array