SearchPageRepositoryInterface::isSearchActive

public SearchPageRepositoryInterface::isSearchActive() Returns whether search is active. Return value bool TRUE if at least one search is active, FALSE otherwise. File core/modules/search/src/SearchPageRepositoryInterface.php, line 24 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function isSearchActive();

SearchPageRepositoryInterface::getIndexableSearchPages

public SearchPageRepositoryInterface::getIndexableSearchPages() Returns all active, indexable search page entities. Return value \Drupal\search\SearchPageInterface[] An array of indexable search page entities. File core/modules/search/src/SearchPageRepositoryInterface.php, line 32 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function getIndexableSearchPages();

SearchPageRepositoryInterface

Provides the interface for a repository Search Page entities. Hierarchy interface \Drupal\search\SearchPageRepositoryInterface File core/modules/search/src/SearchPageRepositoryInterface.php, line 8 Namespace Drupal\search Members Name Modifiers Type Description SearchPageRepositoryInterface::clearDefaultSearchPage public function Clears the default search page. SearchPageRepositoryInterface::getActiveSearchPages public function Returns all active search page enti

SearchPageRepository::__construct

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 Drup

SearchPageRepositoryInterface::clearDefaultSearchPage

public SearchPageRepositoryInterface::clearDefaultSearchPage() Clears the default search page. File core/modules/search/src/SearchPageRepositoryInterface.php, line 55 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function clearDefaultSearchPage();

SearchPageRepositoryInterface::getActiveSearchPages

public SearchPageRepositoryInterface::getActiveSearchPages() Returns all active search page entities. Return value \Drupal\search\SearchPageInterface[] An array of active search page entities. File core/modules/search/src/SearchPageRepositoryInterface.php, line 16 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function getActiveSearchPages();

SearchPageRepository::sortSearchPages

public SearchPageRepository::sortSearchPages($search_pages) Sorts a list of search pages. Parameters \Drupal\search\SearchPageInterface[] $search_pages: The unsorted list of search pages. Return value \Drupal\search\SearchPageInterface[] The sorted list of search pages. Overrides SearchPageRepositoryInterface::sortSearchPages File core/modules/search/src/SearchPageRepository.php, line 106 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupa

SearchPageRepository::getDefaultSearchPage

public SearchPageRepository::getDefaultSearchPage() Returns the default search page. Return value \Drupal\search\SearchPageInterface|bool The search page entity, or FALSE if no pages are active. Overrides SearchPageRepositoryInterface::getDefaultSearchPage File core/modules/search/src/SearchPageRepository.php, line 72 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function getDefaultSearchPage() { // Find all act

SearchPageRepository::getIndexableSearchPages

public SearchPageRepository::getIndexableSearchPages() Returns all active, indexable search page entities. Return value \Drupal\search\SearchPageInterface[] An array of indexable search page entities. Overrides SearchPageRepositoryInterface::getIndexableSearchPages File core/modules/search/src/SearchPageRepository.php, line 63 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function getIndexableSearchPages() { ret

SearchPageRepository::isSearchActive

public SearchPageRepository::isSearchActive() Returns whether search is active. Return value bool TRUE if at least one search is active, FALSE otherwise. Overrides SearchPageRepositoryInterface::isSearchActive File core/modules/search/src/SearchPageRepository.php, line 53 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function isSearchActive() { return (bool) $this->getQuery() ->condition('status', TRUE