protected function Main__1_5::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_5.php, line 41 - Contains \Drupal\restful_test\Plugin\resource\entity_test\main\v1\Main__1_5.
Class
- Main__1_5
- Class Main__1_5 @package Drupal\restful_test\Plugin\resource
Namespace
Drupal\restful_test\Plugin\resource\entity_test\main\v1Code
protected function publicFields() {
$public_fields = parent::publicFields();
$public_fields['process_callbacks'] = array(
'wrapper_method' => 'label',
'wrapper_method_on_entity' => TRUE,
'process_callbacks' => array(
array(
$this,
'invalidProcessCallback',
),
),
);
return $public_fields;
}