function SearchPageRepository::__construct
Same name in other branches
- 9 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::__construct()
- 8.9.x core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::__construct()
- 10 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::__construct()
Constructs a new SearchPageRepository.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
-
core/
modules/ search/ src/ SearchPageRepository.php, line 35
Class
- SearchPageRepository
- Provides a repository for Search Page config entities.
Namespace
Drupal\searchCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
$this->configFactory = $config_factory;
$this->storage = $entity_type_manager->getStorage('search_page');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.