function ResponseDisplayPluginInterface::buildResponse

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/display/ResponseDisplayPluginInterface.php \Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface::buildResponse()
  2. 10 core/modules/views/src/Plugin/views/display/ResponseDisplayPluginInterface.php \Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface::buildResponse()
  3. 11.x 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 = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.