You are here

public function FormatterInterface::render in RESTful 7.2

Renders an array in the selected format.

Parameters

array $structured_data: The data prepared to be rendered as returned by \RestfulFormatterInterface::prepare().

Return value

string The body contents for the HTTP response.

1 call to FormatterInterface::render()
Formatter::format in src/Plugin/formatter/Formatter.php
Formats the un-structured data into the output format.
3 methods override FormatterInterface::render()
FormatterHalJson::render in src/Plugin/formatter/FormatterHalJson.php
Renders an array in the selected format.
FormatterJson::render in src/Plugin/formatter/FormatterJson.php
Renders an array in the selected format.
FormatterJsonApi::render in src/Plugin/formatter/FormatterJsonApi.php
Renders an array in the selected format.

File

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

Class

FormatterInterface

Namespace

Drupal\restful\Plugin\formatter

Code

public function render(array $structured_data);