X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsearch%2Fsrc%2FController%2FSearchController.php;fp=web%2Fcore%2Fmodules%2Fsearch%2Fsrc%2FController%2FSearchController.php;h=e0b6466aa1997ed43c5a9aa0b3cd7137659e0433;hp=ac078e18eb5393ffa78c0b46cb798fc40343e879;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/search/src/Controller/SearchController.php b/web/core/modules/search/src/Controller/SearchController.php index ac078e18e..e0b6466aa 100644 --- a/web/core/modules/search/src/Controller/SearchController.php +++ b/web/core/modules/search/src/Controller/SearchController.php @@ -5,6 +5,7 @@ namespace Drupal\search\Controller; use Drupal\Core\Cache\CacheableDependencyInterface; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Render\RendererInterface; +use Drupal\search\Form\SearchPageForm; use Drupal\search\SearchPageInterface; use Drupal\search\SearchPageRepositoryInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -84,7 +85,7 @@ class SearchController extends ControllerBase { } $build['#title'] = $plugin->suggestedTitle(); - $build['search_form'] = $this->entityFormBuilder()->getForm($entity, 'search'); + $build['search_form'] = $this->formBuilder()->getForm(SearchPageForm::class, $entity); // Build search results, if keywords or other search parameters are in the // GET parameters. Note that we need to try the search if 'keys' is in @@ -148,8 +149,6 @@ class SearchController extends ControllerBase { /** * Creates a render array for the search help page. * - * @param \Symfony\Component\HttpFoundation\Request $request - * The request object. * @param \Drupal\search\SearchPageInterface $entity * The search page entity. *