You are here

protected function Main__1_3::publicFields in RESTful 7.2

Overrides ResourceEntity::publicFields().

Overrides ResourceEntity::publicFields

File

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

Class

Main__1_3
Class Main__1_3 @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['callback'] = array(
    'callback' => array(
      $this,
      'invalidCallback',
    ),
  );
  return $public_fields;
}