You are here

protected function Articles__2_1::publicFields in RESTful 7.2

Public fields.

Return value

array The field definition array.

Overrides ResourceEntity::publicFields

File

modules/restful_example/src/Plugin/resource/node/article/v2/Articles__2_1.php, line 41
Contains \Drupal\restful_example\Plugin\resource\node\article\v2\Articles__2_1.

Class

Articles__2_1
Class Articles @package Drupal\restful\Plugin\resource

Namespace

Drupal\restful_example\Plugin\resource\node\article\v2

Code

protected function publicFields() {
  $fields = parent::publicFields();
  $fields['custom-uuid'] = array(
    'methods' => array(),
    'property' => 'uuid',
  );
  return $fields;
}