You are here

public function FormatterInterface::format in RESTful 7.2

Formats the un-structured data into the output format.

Parameters

array $data: The raw data to return.

Return value

string The body contents for the HTTP response.

See also

\RestfulFormatterInterface::prepare()

\RestfulFormatterInterface::render()

1 method overrides FormatterInterface::format()
Formatter::format in src/Plugin/formatter/Formatter.php
Formats the un-structured data into the output format.

File

src/Plugin/formatter/FormatterInterface.php, line 53
Contains \Drupal\restful\Plugin\formatter\FormatterInterface

Class

FormatterInterface

Namespace

Drupal\restful\Plugin\formatter

Code

public function format(array $data);