Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate::setNodeType PHP Method

setNodeType() public method

Set the node type
public setNodeType ( string $nodeType )
$nodeType string
    public function setNodeType($nodeType)
    {
        if (is_string($nodeType)) {
            $nodeType = $this->nodeTypeManager->getNodeType($nodeType);
        }
        if (!$nodeType instanceof NodeType) {
            throw new \InvalidArgumentException('nodeType needs to be of type string or NodeType', 1452100970);
        }
        $this->nodeType = $nodeType;
    }

Same methods

AbstractCreate::setNodeType ( string | TYPO3\TYPO3CR\Domain\Model\NodeType $nodeType )