TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CmsVariableProvider Class Reference
Inheritance diagram for CmsVariableProvider:

Public Member Functions

 getByPath ($path, array $accessors=[])
 

Detailed Description

Class CmsVariableProvider

Definition at line 20 of file CmsVariableProvider.php.

Member Function Documentation

getByPath (   $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.

Parameters
string$path
array$accessors
Returns
mixed

Definition at line 33 of file CmsVariableProvider.php.