W3cubDocs

/Drupal 8

public function MainContentRendererInterface::renderResponse

public MainContentRendererInterface::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match)

Renders the main content render array into a response.

Parameters

array $main_content: The render array representing the main content.

\Symfony\Component\HttpFoundation\Request $request: The request object, for context.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context.

Return value

\Symfony\Component\HttpFoundation\Response The Response in the format that this implementation supports.

File

core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php, line 31

Class

MainContentRendererInterface
The interface for "main content" (

Namespace

Drupal\Core\Render\MainContent

Code

public function renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!MainContent!MainContentRendererInterface.php/function/MainContentRendererInterface::renderResponse/8.1.x