You are here

public function SearchPageRepository::__construct in Zircon Profile 8.0

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\EntityManagerInterface $entity_manager: The entity manager.

File

core/modules/search/src/SearchPageRepository.php, line 40
Contains \Drupal\search\SearchPageRepository.

Class

SearchPageRepository
Provides a repository for Search Page config entities.

Namespace

Drupal\search

Code

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