Neos.Neos/Classes/ViewHelpers/Rendering/AbstractRenderingStateViewHelper.php
protected function getContextNode()
    {
        $baseNode = null;
        $view = $this->viewHelperVariableContainer->getView();
        if ($view instanceof FusionAwareViewInterface) {
            $fusionObject = $view->getFusionObject();
            $currentContext = $fusionObject->getRuntime()->getCurrentContext();
            if (isset($currentContext['node'])) {
                $baseNode = $currentContext['node'];
            }
        }

        return $baseNode;
    }
protected function getContextNode()
    {
        $baseNode = null;
        $view = $this->viewHelperVariableContainer->getView();
        if ($view instanceof FusionAwareViewInterface) {
            $fusionObject = $view->getFusionObject();
            $currentContext = $fusionObject->getRuntime()->getCurrentContext();
            if (isset($currentContext['node'])) {
                $baseNode = $currentContext['node'];
            }
        }

        return $baseNode;
    }
protected function getContextNode ( ) { $ baseNode = null ; $ view = $ this -> viewHelperVariableContainer -> getView ( ) ; if ( $ view instanceof FusionAwareViewInterface ) { $ fusionObject = $ view -> getFusionObject ( ) ; $ currentContext = $ fusionObject -> getRuntime ( ) -> getCurrentContext ( ) ; if ( isset ( $ currentContext [ 'node' ] ) ) { $ baseNode = $ currentContext [ 'node' ] ; } } return $ baseNode ; }
Get a node from the current Fusion context if available.

@return NodeInterface|NULL

@TODO Refactor to a Fusion Context trait (in Neos.Fusion) that can be used inside ViewHelpers to get variables from the Fusion context.
Get a node from the current Fusion context if available .