function SearchBlockForm::__construct

Same name in other branches
  1. 9 core/modules/search/src/Form/SearchBlockForm.php \Drupal\search\Form\SearchBlockForm::__construct()
  2. 10 core/modules/search/src/Form/SearchBlockForm.php \Drupal\search\Form\SearchBlockForm::__construct()
  3. 11.x core/modules/search/src/Form/SearchBlockForm.php \Drupal\search\Form\SearchBlockForm::__construct()

Constructs a new SearchBlockForm.

Parameters

\Drupal\search\SearchPageRepositoryInterface $search_page_repository: The search page repository.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/search/src/Form/SearchBlockForm.php, line 51

Class

SearchBlockForm
Builds the search form for the search block.

Namespace

Drupal\search\Form

Code

public function __construct(SearchPageRepositoryInterface $search_page_repository, ConfigFactoryInterface $config_factory, RendererInterface $renderer) {
    $this->searchPageRepository = $search_page_repository;
    $this->configFactory = $config_factory;
    $this->renderer = $renderer;
}

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