PHP Класс Neos\ContentRepository\Migration\Transformations\ChangeNodeType

Наследование: extends AbstractTransformation
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$newType string The new Node Type to use as a string
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Открытые методы

Метод Описание
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

Описание методов

execute() публичный Метод

Change the Node Type on the given node.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
Результат void

isTransformable() публичный Метод

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
Результат boolean

setNewType() публичный Метод

public setNewType ( string $newType ) : void
$newType string
Результат void

Описание свойств

$newType защищенное свойство

The new Node Type to use as a string
protected string $newType
Результат string

$nodeTypeManager защищенное свойство

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager