/** * * * @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(); }