You are here

RestfulTestMainResource__1_4.class.php in RESTful 7

Contains RestfulTestMainResource__1_4.

File

tests/modules/restful_test/plugins/restful/entity_test/main/1.4/RestfulTestMainResource__1_4.class.php
View source
<?php

/**
 * @file
 * Contains RestfulTestMainResource__1_4.
 */
class RestfulTestMainResource__1_4 extends RestfulTestMainResource {

  /**
   * Overrides RestfulTestEntityTestsResource::publicFieldsInfo().
   */
  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;
  }

}

Classes

Namesort descending Description
RestfulTestMainResource__1_4 @file Contains RestfulTestMainResource__1_4.