function SearchPageRepository::getActiveSearchPages

Same name in other branches
  1. 9 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::getActiveSearchPages()
  2. 10 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::getActiveSearchPages()
  3. 11.x core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::getActiveSearchPages()

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 43

Class

SearchPageRepository
Provides a repository for Search Page config entities.

Namespace

Drupal\search

Code

public function getActiveSearchPages() {
    $ids = $this->getQuery()
        ->condition('status', TRUE)
        ->execute();
    return $this->storage
        ->loadMultiple($ids);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.