function SearchController::create

Same name in other branches
  1. 9 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::create()

Overrides ControllerBase::create

File

core/modules/search/src/Controller/SearchController.php, line 57

Class

SearchController
Route controller for search.

Namespace

Drupal\search\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('search.search_page_repository'), $container->get('renderer'));
}

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