SearchPageRepository::getActiveSearchPages

public SearchPageRepository::getActiveSearchPages()

Returns all active search page entities.

Return value

\Drupal\search\SearchPageInterface[] An array of active search page entities.

Overrides SearchPageRepositoryInterface::getActiveSearchPages

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);
}
doc_Drupal
2016-10-29 09:40:44
Comments
Leave a Comment

Please login to continue.