Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views / src / Plugin / views / display / ResponseDisplayPluginInterface.php
1 <?php
2
3 namespace Drupal\views\Plugin\views\display;
4
5 /**
6  * Defines a display which returns a Response object.
7  *
8  * This interface is meant to be used for display plugins, which do return some
9  * other format requiring to return a response directly.
10  */
11 interface ResponseDisplayPluginInterface extends DisplayPluginInterface {
12
13   /**
14    * Builds up a response with the rendered view as content.
15    *
16    * @param string $view_id
17    *   The view ID.
18    * @param string $display_id
19    *   The display ID.
20    * @param array $args
21    *   (optional) The arguments of the view.
22    *
23    * @return \Symfony\Component\HttpFoundation\Response
24    *   The built response.
25    */
26   public static function buildResponse($view_id, $display_id, array $args = []);
27
28 }