public getDocumentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
return | Neos\ContentRepository\Domain\Model\NodeInterface |
public function getDocumentNode()
{
try {
$context = $this->contextFactory->create(array('workspaceName' => $this->userService->getUserWorkspace()->getName(), 'dimensions' => $this->dimension, 'currentSite' => $this->getCurrentSite(), 'invisibleContentShown' => true));
return $context->getNodeByIdentifier($this->documentNodeIdentifier);
} catch (EntityNotFoundException $e) {
return null;
}
}