You are here

protected function Main__1_6::publicFields in RESTful 7.2

Overrides ResourceEntity::publicFields().

Overrides Main__1_1::publicFields

File

tests/modules/restful_test/src/Plugin/resource/entity_test/main/v1/Main__1_6.php, line 40
Contains \Drupal\restful_test\Plugin\resource\entity_test\main\v1\Main__1_6.

Class

Main__1_6
Class Main__1_6 @package Drupal\restful_test\Plugin\resource

Namespace

Drupal\restful_test\Plugin\resource\entity_test\main\v1

Code

protected function publicFields() {
  $public_fields = parent::publicFields();
  $public_fields['entity_reference_single_resource']['resource']['name'] = 'test_articles';
  $public_fields['entity_reference_multiple_resource']['resource']['name'] = 'test_articles';
  return $public_fields;
}