You are here

public function RestfulTestTestsResource::publicFieldsInfo in RESTful 7

Overrides RestfulEntityBase::publicFieldsInfo().

Overrides RestfulEntityBase::publicFieldsInfo

File

tests/modules/restful_test/plugins/restful/entity_test/tests/1.0/RestfulTestTestsResource.class.php, line 13
Contains RestfulTestTestsResource.

Class

RestfulTestTestsResource
@file Contains RestfulTestTestsResource.

Code

public function publicFieldsInfo() {
  $public_fields = parent::publicFieldsInfo();
  $public_fields['type'] = array(
    'property' => 'name',
    'wrapper_method' => 'getBundle',
    'wrapper_method_on_entity' => TRUE,
  );
  return $public_fields;
}