public function RestfulBase::format in RESTful 7
Call the output format on the given data.
Parameters
array $data: The array of data to format.
Return value
string The formatted output.
File
- plugins/
restful/ RestfulBase.php, line 542 - Contains RestfulBase.
Class
- RestfulBase
- Class \RestfulBase
Code
public function format(array $data) {
return $this
->formatter()
->format($data);
}