You are here

public function SearchPageRepository::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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\search

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->configFactory = $config_factory;
  $this->storage = $entity_type_manager
    ->getStorage('search_page');
}