PHP Class Neos\ContentRepository\Migration\Transformations\RenameProperty

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

Protected Properties

Property Type Description
$newPropertyName string New name of property
$oldPropertyName string Property name to change

Public Methods

Method Description
execute ( NodeData $node ) : void Renames the configured property to the new name.
isTransformable ( NodeData $node ) : boolean Returns TRUE if the given node has a property with the name to work on and does not yet have a property with the name to rename that property to.
setFrom ( string $oldPropertyName ) : void Sets the name of the property to change.
setTo ( string $newPropertyName ) : void Sets the new name for the property to change.

Method Details

execute() public method

Renames the configured property 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 has a property with the name to work on and does not yet have a property with the name to rename that property to.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
return boolean

setFrom() public method

Sets the name of the property to change.
public setFrom ( string $oldPropertyName ) : void
$oldPropertyName string
return void

setTo() public method

Sets the new name for the property to change.
public setTo ( string $newPropertyName ) : void
$newPropertyName string
return void

Property Details

$newPropertyName protected_oe property

New name of property
protected string $newPropertyName
return string

$oldPropertyName protected_oe property

Property name to change
protected string $oldPropertyName
return string