Neos.Fusion/Classes/ViewHelpers/FusionContextTrait.php
protected function getContextVariable($variableName)
    {
        $value = null;

        $view = $this->viewHelperVariableContainer->getView();
        if ($view instanceof FusionAwareViewInterface) {
            $fusionObject = $view->getFusionObject();
            $currentContext = $fusionObject->getRuntime()->getCurrentContext();
            if (isset($currentContext[$variableName])) {
                $value = $currentContext[$variableName];
            }
        }

        return $value;
    }
protected function getContextVariable($variableName)
    {
        $value = null;

        $view = $this->viewHelperVariableContainer->getView();
        if ($view instanceof FusionAwareViewInterface) {
            $fusionObject = $view->getFusionObject();
            $currentContext = $fusionObject->getRuntime()->getCurrentContext();
            if (isset($currentContext[$variableName])) {
                $value = $currentContext[$variableName];
            }
        }

        return $value;
    }
protected function getContextVariable ( $ variableName ) { $ value = null ; $ view = $ this -> viewHelperVariableContainer -> getView ( ) ; if ( $ view instanceof FusionAwareViewInterface ) { $ fusionObject = $ view -> getFusionObject ( ) ; $ currentContext = $ fusionObject -> getRuntime ( ) -> getCurrentContext ( ) ; if ( isset ( $ currentContext [ $ variableName ] ) ) { $ value = $ currentContext [ $ variableName ] ; } } return $ value ; }
Get a variable value from the Fusion runtime context.

Note: This will return NULL if the variable didn't exist.

@see hasContextVariable()

@param string $variableName
@return mixed
Get a variable value from the Fusion runtime context .