You are here

public static function ResponseDisplayPluginInterface::buildResponse in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/ResponseDisplayPluginInterface.php \Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface::buildResponse()

Builds up a response with the rendered view as content.

Parameters

string $view_id: The view ID.

string $display_id: The display ID.

array $args: (optional) The arguments of the view.

Return value

\Symfony\Component\HttpFoundation\Response The built response.

2 methods override ResponseDisplayPluginInterface::buildResponse()
Feed::buildResponse in core/modules/views/src/Plugin/views/display/Feed.php
Builds up a response with the rendered view as content.
RestExport::buildResponse in core/modules/rest/src/Plugin/views/display/RestExport.php
Builds up a response with the rendered view as content.

File

core/modules/views/src/Plugin/views/display/ResponseDisplayPluginInterface.php, line 26

Class

ResponseDisplayPluginInterface
Defines a display which returns a Response object.

Namespace

Drupal\views\Plugin\views\display

Code

public static function buildResponse($view_id, $display_id, array $args = []);