You are here

public function MyModuleBookResourceController::wrapper in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.api.php \MyModuleBookResourceController::wrapper()

Overrides RestWSResourceControllerInterface::wrapper

See also

RestWSResourceControllerInterface::wrapper()

File

./restws.api.php, line 169
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Class

MyModuleBookResourceController
Example controller class for the mymodule_book resource.

Code

public function wrapper($id) {
  $book = mymodule_book_load($id);
  $info = $this
    ->propertyInfo();
  return entity_metadata_wrapper('mymodule_book', $book, array(
    'property info' => $info['properties'],
  ));
}