You are here

public function QueryHelper::getAllResults in Search API 8

Retrieves all results data cached in this request.

Return value

\Drupal\search_api\Query\ResultSetInterface[] The results of all searches cached in this service, keyed by their search IDs.

Overrides QueryHelperInterface::getAllResults

File

src/Utility/QueryHelper.php, line 114

Class

QueryHelper
Provides methods for creating search queries and statically caching results.

Namespace

Drupal\search_api\Utility

Code

public function getAllResults() {
  return $this->results[$this
    ->getCurrentRequest()] ?? [];
}