Neos\Neos\Ui\Domain\Model\Feedback\Operations\ReloadDocument::setDocument PHP 메소드

setDocument() 공개 메소드

Set the document
public setDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $document ) : void
$document TYPO3\TYPO3CR\Domain\Model\NodeInterface
리턴 void
    public function setDocument(NodeInterface $document)
    {
        $this->document = $document;
    }

Usage Example

예제 #1
0
 /**
  * Inform the client to reload the currently-displayed document, because the rendering has changed.
  *
  * This method will be triggered if [nodeType].properties.[propertyName].ui.reloadIfChanged is TRUE.
  *
  * @return void
  */
 protected function reloadDocument()
 {
     $nodeService = new NodeService();
     $reloadDocument = new ReloadDocument();
     $reloadDocument->setDocument($nodeService->getClosestDocument($this->getSubject()));
     $this->feedbackCollection->add($reloadDocument);
 }
All Usage Examples Of Neos\Neos\Ui\Domain\Model\Feedback\Operations\ReloadDocument::setDocument