protected function DataProviderVariable::initDataInterpreter in RESTful 7.2
Get the data interpreter.
Parameters
mixed $identifier: The ID of thing being viewed.
Return value
\Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface The data interpreter.
Overrides DataProvider::initDataInterpreter
2 calls to DataProviderVariable::initDataInterpreter()
- DataProviderVariable::applyFilters in modules/
restful_example/ src/ Plugin/ resource/ variables/ DataProviderVariable.php - Removes plugins from the list based on the request options.
- DataProviderVariable::applySort in modules/
restful_example/ src/ Plugin/ resource/ variables/ DataProviderVariable.php - Sorts plugins on the list based on the request options.
File
- modules/
restful_example/ src/ Plugin/ resource/ variables/ DataProviderVariable.php, line 225 - Contains \Drupal\restful_example\Plugin\resource\variables\DataProviderVariable.
Class
- DataProviderVariable
- Class DataProviderVariable.
Namespace
Drupal\restful_example\Plugin\resource\variablesCode
protected function initDataInterpreter($identifier) {
return new DataInterpreterVariable($this
->getAccount(), new ArrayWrapper(array(
'name' => $identifier,
'value' => variable_get($identifier),
)));
}