protected function Main__1_4::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_4.php, line 37 - Contains \Drupal\restful_test\Plugin\resource\entity_test\main\v1\Main__1_4.
Class
- Main__1_4
- Class Main__1_4 @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;
}