class RenameDimension extends AbstractTransformation (View source)

Rename a dimension.

Properties

protected ContentDimensionRepository $contentDimensionRepository
protected string $oldDimensionName

The old name for the dimension.

protected string $newDimensionName

The new name for the dimension.

Methods

bool
isTransformable(NodeData $node)

Returns true, indicating that the given node can be transformed by this transformation.

execute(NodeData $nodeData)

Change the property on the given node.

setNewDimensionName(string $newDimensionName)

No description

string
getNewDimensionName()

No description

setOldDimensionName(string $oldDimensionName)

No description

string
getOldDimensionName()

No description

Details

bool isTransformable(NodeData $node)

Returns true, indicating that the given node can be transformed by this transformation.

Parameters

NodeData $node

Return Value

bool

NodeData execute(NodeData $nodeData)

Change the property on the given node.

Parameters

NodeData $nodeData

Return Value

NodeData

setNewDimensionName(string $newDimensionName)

No description

Parameters

string $newDimensionName

string getNewDimensionName()

No description

Return Value

string

setOldDimensionName(string $oldDimensionName)

No description

Parameters

string $oldDimensionName

string getOldDimensionName()

No description

Return Value

string