You are here

RestfulTestTestsResource.class.php in RESTful 7

Contains RestfulTestTestsResource.

File

tests/modules/restful_test/plugins/restful/entity_test/tests/1.0/RestfulTestTestsResource.class.php
View source
<?php

/**
 * @file
 * Contains RestfulTestTestsResource.
 */
class RestfulTestTestsResource extends RestfulEntityBase {

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

}

Classes

Namesort descending Description
RestfulTestTestsResource @file Contains RestfulTestTestsResource.