You are here

public function ResultSet::getResultCount in Search API 8

Retrieves the total number of results that were found in this search.

Return value

int|null The total number of results, if set. NULL otherwise.

Overrides ResultSetInterface::getResultCount

1 call to ResultSet::getResultCount()
ResultSet::__toString in src/Query/ResultSet.php
Implements the magic __toString() method to simplify debugging.

File

src/Query/ResultSet.php, line 75

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function getResultCount() {
  return $this->resultCount;
}