Neos\Neos\View\TypoScriptView::getCurrentNode PHP Méthode

getCurrentNode() protected méthode

protected getCurrentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Résultat Neos\ContentRepository\Domain\Model\NodeInterface
    protected function getCurrentNode()
    {
        $currentNode = isset($this->variables['value']) ? $this->variables['value'] : null;
        if (!$currentNode instanceof Node) {
            throw new Exception('TypoScriptView needs a variable \'value\' set with a Node object.', 1329736456);
        }
        return $currentNode;
    }