TemplateVariableContainer
class TemplateVariableContainer extends StandardVariableProvider implements VariableProviderInterface (View source)
Provides the variables inside fluid template. Adds TemplateObjectAccessInterface functionality.
Constants
ACCESSOR_OBJECT_ACCESS |
|
Methods
Get a variable by dotted path expression, retrieving the variable from nested arrays/objects one segment at a time.
No description
No description
No description
Tries to interpret the given path as boolean value, either returns the boolean value or null.
Details
mixed
getByPath(string $path, array $accessors = [])
Get a variable by dotted path expression, retrieving the variable from nested arrays/objects one segment at a time.
If the second argument is provided, it must be an array of accessor names which can be used to extract each value in the dotted path.
protected string
resolveSubVariableReferences(string $propertyPath)
No description
protected null|string
detectAccessor(mixed $subject, string $propertyName)
No description
protected mixed|null
extractWithAccessor(mixed $subject, string $propertyName, string $accessor)
No description
protected bool|null
getBooleanValue($path)
Tries to interpret the given path as boolean value, either returns the boolean value or null.