ChangeNodeType
class ChangeNodeType extends AbstractTransformation (View source)
Change the node type.
Properties
protected NodeTypeManager | $nodeTypeManager | ||
protected string | $newType | The new Node Type to use as a string |
Methods
bool
isTransformable(NodeData $node)
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.
void
setNewType(string $newType)
No description
Details
bool
isTransformable(NodeData $node)
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.
void
setNewType(string $newType)
No description