Neos\Neos\Ui\Domain\Model\AbstractChange::addDocumentNodeCreatedFeedback PHP Method

addDocumentNodeCreatedFeedback() protected method

Inform the client that a node has been created, the client decides if and which tree should react to this change.
protected addDocumentNodeCreatedFeedback ( ) : void
return void
    protected function addDocumentNodeCreatedFeedback()
    {
        $nodeService = new NodeService();
        $node = $nodeService->getClosestDocument($this->getSubject());
        if ($nodeService->isDocument($node)) {
            $documentNodeCreated = new DocumentNodeCreated();
            $documentNodeCreated->setDocumentNode($node);
            $this->feedbackCollection->add($documentNodeCreated);
        }
    }