public SearchPageRepository::__construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager)
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 35
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'); }
Please login to continue.