public function RestfulTestMainResource__1_4::publicFieldsInfo in RESTful 7
Overrides RestfulTestEntityTestsResource::publicFieldsInfo().
Overrides RestfulEntityBase::publicFieldsInfo
File
- tests/
modules/ restful_test/ plugins/ restful/ entity_test/ main/ 1.4/ RestfulTestMainResource__1_4.class.php, line 13 - Contains RestfulTestMainResource__1_4.
Class
- RestfulTestMainResource__1_4
- @file Contains RestfulTestMainResource__1_4.
Code
public function publicFieldsInfo() {
$public_fields = parent::publicFieldsInfo();
$public_fields['process_callbacks'] = array(
'wrapper_method' => 'label',
'wrapper_method_on_entity' => TRUE,
'process_callbacks' => array(
array(
$this,
'invalidProcessCallback',
),
),
);
return $public_fields;
}