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

updateWorkspaceInfo() protected method

Helper method to inform the client, that new workspace information is available
protected updateWorkspaceInfo ( ) : void
return void
    protected function updateWorkspaceInfo()
    {
        $nodeService = new NodeService();
        $updateWorkspaceInfo = new UpdateWorkspaceInfo();
        $updateWorkspaceInfo->setDocument($nodeService->getClosestDocument($this->getSubject()));
        $this->feedbackCollection->add($updateWorkspaceInfo);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Helper method to inform the client, that new workspace information is available
  *
  * @return void
  */
 protected function updateWorkspaceInfo()
 {
     parent::updateWorkspaceInfo();
     $updateWorkspaceInfo = new UpdateWorkspaceInfo();
     $updateWorkspaceInfo->setDocument($this->getClosestDocument($this->getReference()));
     $this->feedbackCollection->add($updateWorkspaceInfo);
 }