public function FormatterManagerInterface::format in RESTful 7.2
Call the output format on the given data.
Parameters
array $data: The array of data to format.
string $formatter_name: The name of the formatter for the current resource. Leave it NULL to use the Accept headers.
Return value
string The formatted output.
1 method overrides FormatterManagerInterface::format()
- FormatterManager::format in src/
Formatter/ FormatterManager.php - Call the output format on the given data.
File
- src/
Formatter/ FormatterManagerInterface.php, line 35 - Contains \Drupal\restful\Formatter\FormatterManagerInterface
Class
Namespace
Drupal\restful\FormatterCode
public function format(array $data, $formatter_name = NULL);