PHP Class Neos\ContentRepository\Migration\Transformations\RenameNode

Inheritance: extends AbstractTransformation
Mostrar archivo Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$newName string New name of node

Public Methods

Method Description
execute ( NodeData $node ) : void Renames the node to the new name.
isTransformable ( NodeData $node ) : boolean Returns TRUE if the given node does not yet have the new name.
setNewName ( string $newName ) : void Sets the new name for the node to change.

Method Details

execute() public method

Renames the node to the new name.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
return void

isTransformable() public method

Returns TRUE if the given node does not yet have the new name.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
return boolean

setNewName() public method

Sets the new name for the node to change.
public setNewName ( string $newName ) : void
$newName string
return void

Property Details

$newName protected_oe property

New name of node
protected string $newName
return string