PHP Class Neos\ContentRepository\Migration\Transformations\SetDimensions

Inheritance: extends AbstractTransformation
ファイルを表示 Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$addDefaultDimensionValues boolean Sets 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 set the default value for that dimension.

Public Methods

Method Description
execute ( NodeData $node ) : void Change the property on the given node.
setAddDefaultDimensionValues ( boolean $addDefaultDimensionValues )
setDimensionValues ( array $dimensionValues )

Method Details

execute() public method

Change the property on the given 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

Sets 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 set the default value for that dimension.
protected array $dimensionValues
return array