public function RestWSBaseFormat::viewResource in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws.formats.inc \RestWSBaseFormat::viewResource()
Gets the representation of a resource.
Overrides RestWSFormatInterface::viewResource
2 methods override RestWSBaseFormat::viewResource()
- RestWSFormatRDF::viewResource in ./
restws.formats.inc - Gets the representation of a resource.
- RestWSFormatXML::viewResource in ./
restws.formats.inc - Gets the representation of a resource.
File
- ./
restws.formats.inc, line 110 - RESTful web services module formats.
Class
- RestWSBaseFormat
- A base for all simple formats that are just serializing/unserializing an array of property values.
Code
public function viewResource($resourceController, $id) {
$values = $this
->getData($resourceController
->wrapper($id));
$function = __FUNCTION__;
drupal_alter('restws_response', $values, $function, $this->formatName, $resourceController);
return $this
->serialize($values);
}