class TemplateVariableContainer extends StandardVariableProvider (View source)

Provides the variables inside fluid template. Adds TemplateObjectAccessInterface functionality.

Methods

mixed
getByPath(string $path)

Get a variable by dotted path expression, retrieving the variable from nested arrays/objects one segment at a time.

string
resolveSubVariableReferences(string $propertyPath)

No description

bool|null
getBooleanValue(string $path)

Tries to interpret the given path as boolean value, either returns the boolean value or null.

Details

mixed getByPath(string $path)

Get a variable by dotted path expression, retrieving the variable from nested arrays/objects one segment at a time.

This sadly mostly copies the parent method to add handling for subjects of type TemplateObjectAccessInterface.

Parameters

string $path

Return Value

mixed

protected string resolveSubVariableReferences(string $propertyPath)

No description

Parameters

string $propertyPath

Return Value

string

protected bool|null getBooleanValue(string $path)

Tries to interpret the given path as boolean value, either returns the boolean value or null.

Parameters

string $path

Return Value

bool|null