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() {
  return array_filter($this->getActiveSearchPages(), function(SearchPageInterface $search) {
    return $search->isIndexable();
  });
}
doc_Drupal
2016-10-29 09:40:45
Comments
Leave a Comment

Please login to continue.