eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchHitAdapter::getNbResults PHP Méthode

getNbResults() public méthode

Returns the number of results.
public getNbResults ( ) : integer
Résultat integer The number of results.
    public function getNbResults()
    {
        if (isset($this->nbResults)) {
            return $this->nbResults;
        }
        $countQuery = clone $this->query;
        $countQuery->limit = 0;
        return $this->nbResults = $this->searchService->findLocations($countQuery)->totalCount;
    }