public getRoot ( ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface | ||
return | TYPO3\TYPO3CR\Domain\Model\NodeInterface |
public function getRoot()
{
if (!$this->root) {
$this->root = $this->active->getContext()->getCurrentSiteNode();
}
return $this->root;
}