You are here

public function FormatterManagerInterface::render in RESTful 7.2

Call the output format on the given data.

Parameters

array $data: The array of data to render.

string $formatter_name: The name of the formatter for the current resource. Leave it NULL to use the Accept headers.

Return value

string The rendered output.

1 method overrides FormatterManagerInterface::render()
FormatterManager::render in src/Formatter/FormatterManager.php
Call the output format on the given data.

File

src/Formatter/FormatterManagerInterface.php, line 49
Contains \Drupal\restful\Formatter\FormatterManagerInterface

Class

FormatterManagerInterface

Namespace

Drupal\restful\Formatter

Code

public function render(array $data, $formatter_name = NULL);