You are here

protected function PhotosImageSearch::getRankings in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/Plugin/Search/PhotosImageSearch.php \Drupal\photos\Plugin\Search\PhotosImageSearch::getRankings()

Gathers ranking definitions from hook_ranking().

Return value

array An array of ranking definitions.

3 calls to PhotosImageSearch::getRankings()
PhotosImageSearch::addPhotosImageRankings in src/Plugin/Search/PhotosImageSearch.php
Adds the configured rankings to the search query.
PhotosImageSearch::buildConfigurationForm in src/Plugin/Search/PhotosImageSearch.php
Form constructor.
PhotosImageSearch::submitConfigurationForm in src/Plugin/Search/PhotosImageSearch.php
Form submission handler.

File

src/Plugin/Search/PhotosImageSearch.php, line 824

Class

PhotosImageSearch
Handles searching for photos_image entities using the Search module index.

Namespace

Drupal\photos\Plugin\Search

Code

protected function getRankings() {
  if (!$this->rankings) {
    $this->rankings = $this->moduleHandler
      ->invokeAll('ranking');
  }
  return $this->rankings;
}