/** * {@inheritdoc} */ public function postExecute(ResultSetInterface $results) { // Postprocess results. $this->index->postprocessSearchResults($results); // Let modules alter the results. \Drupal::moduleHandler()->alter('search_api_results', $results); // Store the results in the static cache. $this->resultsCache->addResults($results); }
/** * {@inheritdoc} */ public function postExecute(ResultSetInterface $results) { // Postprocess results. $this->index->postprocessSearchResults($results); // Let modules alter the results. $hooks = array('search_api_results'); foreach ($this->tags as $tag) { $hooks[] = "search_api_results_{$tag}"; } \Drupal::moduleHandler()->alter($hooks, $results); // Store the results in the static cache. $this->resultsCache->addResults($results); }