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);
doc_Drupal
2016-10-29 09:25:18
Comments
Leave a Comment

Please login to continue.