Neos\Neos\Ui\NodeCreationHandler\DocumentTitleNodeCreationHandler::handle PHP Метод

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

Set the node title for the newly created Document node
public handle ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node, array $data ) : void
$node TYPO3\TYPO3CR\Domain\Model\NodeInterface The newly created node
$data array incoming data from the creationDialog
Результат void
    public function handle(NodeInterface $node, array $data)
    {
        if (isset($data['title']) && $node->getNodeType()->isOfType('TYPO3.Neos:Document')) {
            $node->setProperty('title', $data['title']);
            $node->setProperty('uriPathSegment', NodeUtility::renderValidNodeName($data['title']));
        }
    }
DocumentTitleNodeCreationHandler