PHP Class Neos\ContentRepository\Migration\Transformations\RenameProperty

Inheritance: extends AbstractTransformation
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$newPropertyName string New name of property
$oldPropertyName string Property name to change

Méthodes publiques

Méthode 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 méthode

Renames the configured property to the new name.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
Résultat void

isTransformable() public méthode

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
Résultat boolean

setFrom() public méthode

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

setTo() public méthode

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

Property Details

$newPropertyName protected_oe property

New name of property
protected string $newPropertyName
Résultat string

$oldPropertyName protected_oe property

Property name to change
protected string $oldPropertyName
Résultat string