You are here

protected function Articles__1_6::publicFields in RESTful 7.2

Overrides ResourceNode::publicFields().

Overrides ResourceEntity::publicFields

File

modules/restful_example/src/Plugin/resource/node/article/v1/Articles__1_6.php, line 40
Contains \Drupal\restful_example\Plugin\resource\node\article\v1\Articles__1_6.

Class

Articles__1_6
Class Articles__1_6 @package Drupal\restful\Plugin\resource

Namespace

Drupal\restful_example\Plugin\resource\node\article\v1

Code

protected function publicFields() {
  $public_fields = parent::publicFields();
  $public_fields['body'] = array(
    'property' => 'body',
    'sub_property' => 'value',
  );
  return $public_fields;
}