public function RestfulDataProviderVariable::index in RESTful 7
Get a list of entities.
Return value
array Array of entities, as passed to RestfulEntityBase::viewEntity().
Throws
Overrides RestfulBase::index
File
- plugins/
restful/ RestfulDataProviderVariable.php, line 98 - Contains \RestfulDataProviderDbQuery
Class
- RestfulDataProviderVariable
- @file Contains \RestfulDataProviderDbQuery
Code
public function index() {
$variables = $this
->getVariablesForList();
$return = array();
foreach ($variables as $variable) {
$return[] = $this
->mapVariableToPublicFields($variable);
}
return $return;
}