PHP Class Neos\ContentRepository\Migration\Transformations\ChangeNodeType

Inheritance: extends AbstractTransformation
Mostra file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$newType string The new Node Type to use as a string
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Public Methods

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

Change the Node Type 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 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
return boolean

setNewType() public method

public setNewType ( string $newType ) : void
$newType string
return void

Property Details

$newType protected_oe property

The new Node Type to use as a string
protected string $newType
return string

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager