You are here

protected function Tests__1_0::publicFields in RESTful 7.2

Public fields.

Return value

array The field definition array.

Overrides ResourceEntity::publicFields

File

tests/modules/restful_test/src/Plugin/resource/entity_test/tests/Tests__1_0.php, line 37
Contains \Drupal\restful_test\Plugin\resource\entity_test\tests\Tests__1_0.

Class

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

Namespace

Drupal\restful_test\Plugin\resource\entity_test\tests

Code

protected function publicFields() {
  return array(
    'type' => array(
      'wrapper_method' => 'getBundle',
      'wrapper_method_on_entity' => TRUE,
    ),
  ) + parent::publicFields();
}