You are here

public function RestfulTestMainResource__1_2::publicFieldsInfo in RESTful 7

Overrides RestfulTestEntityTestsResource::publicFieldsInfo().

Overrides RestfulEntityBase::publicFieldsInfo

File

tests/modules/restful_test/plugins/restful/entity_test/main/1.2/RestfulTestMainResource__1_2.class.php, line 13
Contains RestfulTestMainResource__1_2.

Class

RestfulTestMainResource__1_2
@file Contains RestfulTestMainResource__1_2.

Code

public function publicFieldsInfo() {
  $public_fields = parent::publicFieldsInfo();
  $public_fields['callback'] = array(
    'callback' => array(
      $this,
      'callback',
    ),
  );
  $public_fields['process_callback_from_callback'] = array(
    'callback' => array(
      $this,
      'callback',
    ),
    'process_callbacks' => array(
      array(
        $this,
        'processCallbackFromCallback',
      ),
    ),
  );
  $public_fields['process_callback_from_value'] = array(
    'wrapper_method' => 'getIdentifier',
    'wrapper_method_on_entity' => TRUE,
    'process_callbacks' => array(
      array(
        $this,
        'processCallbackFromValue',
      ),
    ),
  );
  return $public_fields;
}