trait FusionContextTrait (View source)

This trait is to be used in ViewHelpers that need to get information from the Fusion runtime context.

It will only work when the ViewHelper in question is used in a FusionAwareViewInterface.

A property "viewHelperVariableContainer" is expected in classes that use this, which will be the case for any Fluid ViewHelper.

Methods

mixed
getContextVariable(string $variableName)

Get a variable value from the Fusion runtime context.

bool
hasContextVariable(string $variableName)

No description

Details

protected mixed getContextVariable(string $variableName)

Get a variable value from the Fusion runtime context.

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

Parameters

string $variableName

Return Value

mixed

See also

hasContextVariable()

protected bool hasContextVariable(string $variableName)

No description

Parameters

string $variableName

Return Value

bool