public function SearchPageRepository::getActiveSearchPages in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::getActiveSearchPages()
Returns all active search page entities.
Return value
\Drupal\search\SearchPageInterface[] An array of active search page entities.
Overrides SearchPageRepositoryInterface::getActiveSearchPages
1 call to SearchPageRepository::getActiveSearchPages()
- SearchPageRepository::getIndexableSearchPages in core/
modules/ search/ src/ SearchPageRepository.php - Returns all active, indexable search page entities.
File
- core/
modules/ search/ src/ SearchPageRepository.php, line 48 - Contains \Drupal\search\SearchPageRepository.
Class
- SearchPageRepository
- Provides a repository for Search Page config entities.
Namespace
Drupal\searchCode
public function getActiveSearchPages() {
$ids = $this
->getQuery()
->condition('status', TRUE)
->execute();
return $this->storage
->loadMultiple($ids);
}