Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / tests / modules / views_test_data / src / Controller / ViewsTestDataController.php
1 <?php
2
3 namespace Drupal\views_test_data\Controller;
4
5 /**
6  * Controller class for views_test_data callbacks.
7  */
8 class ViewsTestDataController {
9
10   /**
11    * Renders an error form page.
12    *
13    * This contains a form that will contain an error and an embedded view with
14    * an exposed form.
15    */
16   public function errorFormPage() {
17     $build = [];
18     $build['view'] = [
19       '#type' => 'view',
20       '#name' => 'test_exposed_form_buttons',
21     ];
22     $build['error_form'] = \Drupal::formBuilder()->getForm('Drupal\views_test_data\Form\ViewsTestDataErrorForm');
23
24     return $build;
25   }
26
27 }