public function RestWSEntityResourceController::wrapper in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws.entity.inc \RestWSEntityResourceController::wrapper()
Returns a metadata wrapper for the resource with the given id.
Return value
EntityStructureWrapper Metadata wrapper of the resource.
Overrides RestWSResourceControllerInterface::wrapper
1 call to RestWSEntityResourceController::wrapper()
- RestWSEntityResourceController::update in ./
restws.entity.inc - Update an existing resource.
File
- ./
restws.entity.inc, line 151 - RESTful web services module integration for entities.
Class
- RestWSEntityResourceController
- Controller for entity-bases resources.
Code
public function wrapper($id) {
return entity_metadata_wrapper($this->entityType, $id);
}