PHP Class Neos\ContentRepository\Migration\Transformations\AddNewProperty

Inheritance: extends AbstractTransformation
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$newPropertyName string
$value string

Public Methods

Method 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 method

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

isTransformable() public method

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
return boolean

setNewPropertyName() public method

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

setValue() public method

Property value to be set.
public setValue ( string $value ) : void
$value string
return void

Property Details

$newPropertyName protected_oe property

protected string $newPropertyName
return string

$value protected_oe property

protected string $value
return string