You are here

protected function RestfulTestTranslatableEntityResource__1_0::publicFields in RESTful 7.2

Overrides Main__1_0::publicFields().

Overrides ResourceEntity::publicFields

File

tests/modules/restful_test/src/Plugin/resource/restful_test_translatable_entity/v1/RestfulTestTranslatableEntityResource__1_0.php, line 38
Contains \Drupal\restful_test\Plugin\resource\restful_test_translatable_entity\v1\RestfulTestTranslatableEntityResource__1_0.

Class

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

Namespace

Drupal\restful_test\Plugin\resource\restful_test_translatable_entity\v1

Code

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