PHP Class Neos\ContentRepository\Migration\Transformations\ChangeNodeType

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

Protected Properties

Свойство Type Description
$newType string The new Node Type to use as a string
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Méthodes publiques

Méthode Description
execute ( NodeData $node ) : void Change the Node Type on the given node.
isTransformable ( NodeData $node ) : boolean If the given node has the property this transformation should work on, this returns TRUE if the given NodeType is registered with the NodeTypeManager and is not abstract.
setNewType ( string $newType ) : void

Method Details

execute() public méthode

Change the Node Type 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 the property this transformation should work on, this returns TRUE if the given NodeType is registered with the NodeTypeManager and is not abstract.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
Résultat boolean

setNewType() public méthode

public setNewType ( string $newType ) : void
$newType string
Résultat void

Property Details

$newType protected_oe property

The new Node Type to use as a string
protected string $newType
Résultat string

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Résultat Neos\ContentRepository\Domain\Service\NodeTypeManager