PHP Class Neos\ContentRepository\Migration\Transformations\AddNewProperty

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

Protected Properties

Свойство Type Description
$newPropertyName string
$value string

Méthodes publiques

Méthode Description
execute ( NodeData $node ) : void Add the new property with the given value on the given node.
isTransformable ( NodeData $node ) : boolean If the given node has no property this transformation should work on, this returns TRUE.
setNewPropertyName ( string $newPropertyName ) : void Sets the name of the new property to be added.
setValue ( string $value ) : void Property value to be set.

Method Details

execute() public méthode

Add the new property with the given value on the given node.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
Résultat void

isTransformable() public méthode

If the given node has no property this transformation should work on, this returns TRUE.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
Résultat boolean

setNewPropertyName() public méthode

Sets the name of the new property to be added.
public setNewPropertyName ( string $newPropertyName ) : void
$newPropertyName string
Résultat void

setValue() public méthode

Property value to be set.
public setValue ( string $value ) : void
$value string
Résultat void

Property Details

$newPropertyName protected_oe property

protected string $newPropertyName
Résultat string

$value protected_oe property

protected string $value
Résultat string