public function SearchBlockForm::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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: The renderer.
File
- core/
modules/ search/ src/ Form/ SearchBlockForm.php, line 53 - Contains \Drupal\search\Form\SearchBlockForm.
Class
- SearchBlockForm
- Builds the search form for the search block.
Namespace
Drupal\search\FormCode
public function __construct(SearchPageRepositoryInterface $search_page_repository, ConfigFactoryInterface $config_factory, RendererInterface $renderer) {
$this->searchPageRepository = $search_page_repository;
$this->configFactory = $config_factory;
$this->renderer = $renderer;
}