getClosestAggregateNode() публичный статический Метод

Returns the closest aggregate node of the given node
public static getClosestAggregateNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : Neos\ContentRepository\Domain\Model\NodeInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат Neos\ContentRepository\Domain\Model\NodeInterface
 /**
  *
  *
  * @param NodeInterface $node
  * @param Workspace $targetWorkspace
  * @return void
  */
 public function afterNodePublishing(NodeInterface $node, Workspace $targetWorkspace)
 {
     if (!$this->eventEmittingService->isEnabled()) {
         return;
     }
     $documentNode = NodeEvent::getClosestAggregateNode($node);
     if ($documentNode === null) {
         return;
     }
     $this->scheduledNodeEventUpdates[$documentNode->getContextPath()] = array('workspaceName' => $node->getContext()->getWorkspaceName(), 'nestedNodeIdentifiersWhichArePublished' => array(), 'targetWorkspace' => $targetWorkspace->getName(), 'documentNode' => $documentNode);
     $this->scheduledNodeEventUpdates[$documentNode->getContextPath()]['nestedNodeIdentifiersWhichArePublished'][] = $node->getIdentifier();
 }