PHP Trait Neos\Fusion\ViewHelpers\TypoScriptContextTrait

It will only work when the ViewHelper in question is used in a TypoScriptAwareViewInterface. A property "viewHelperVariableContainer" is expected in classes that use this, which will be the case for any Fluid ViewHelper.
Show file Open project: neos/neos-development-collection

Protected Methods

Method Description
getContextVariable ( string $variableName ) : mixed Get a variable value from the TypoScript runtime context.
hasContextVariable ( string $variableName ) : boolean

Method Details

getContextVariable() protected method

Note: This will return NULL if the variable didn't exist.
See also: hasContextVariable()
protected getContextVariable ( string $variableName ) : mixed
$variableName string
return mixed

hasContextVariable() protected method

protected hasContextVariable ( string $variableName ) : boolean
$variableName string
return boolean