TYPO3 CMS  TYPO3_8-7
TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider:

Public Member Functions

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

Protected Member Functions

 resolveSubVariableReferences ($propertyPath)
 

Detailed Description

Class CmsVariableProvider

Definition at line 20 of file CmsVariableProvider.php.

Member Function Documentation

◆ getByPath()

TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider::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.

References TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider\resolveSubVariableReferences().

Referenced by TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider\resolveSubVariableReferences().

◆ resolveSubVariableReferences()

TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider::resolveSubVariableReferences (   $propertyPath)
protected
Parameters
string$propertyPath
Returns
string

Definition at line 43 of file CmsVariableProvider.php.

References TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider\getByPath().

Referenced by TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider\getByPath().