protected function DbQueryTest__1_0::publicFields in RESTful 7.2
Public fields.
Return value
array The field definition array.
Overrides Resource::publicFields
File
- tests/
modules/ restful_test/ src/ Plugin/ resource/ db_query_test/ v1/ DbQueryTest__1_0.php, line 42 - Contains
Class
- DbQueryTest__1_0
- Class DbQueryTest__1_0 @package Drupal\restful_test\Plugin\resource
Namespace
Drupal\restful_test\Plugin\resource\db_query_test\v1Code
protected function publicFields() {
$fields = array();
$fields['id'] = array(
'property' => 'id',
);
$fields['string'] = array(
'property' => 'str_field',
);
$fields['integer'] = array(
'property' => 'int_field',
);
$fields['serialized'] = array(
'property' => 'serialized_field',
);
return $fields;
}