protected function ResourceDbQuery::processPublicFields in RESTful 7.2
Get the public fields with the default values applied to them.
Parameters
array $field_definitions: The field definitions to process.
Return value
array The field definition array.
Overrides Resource::processPublicFields
File
- src/
Plugin/ resource/ ResourceDbQuery.php, line 21 - Contains \Drupal\restful\Plugin\resource\ResourceDbQuery.
Class
Namespace
Drupal\restful\Plugin\resourceCode
protected function processPublicFields(array $field_definitions) {
// The fields that only contain a property need to be set to be
// ResourceFieldEntity. Otherwise they will be considered regular
// ResourceField.
return array_map(function ($field_definition) {
return $field_definition + array(
'class' => '\\Drupal\\restful\\Plugin\\resource\\Field\\ResourceFieldDbColumn',
);
}, $field_definitions);
}