public function ResultSet::hasResults in Google Search Appliance 8
Check if there are results.
Return value
bool TRUE if there are results.
File
- src/
SearchResults/ ResultSet.php, line 297
Class
- ResultSet
- Defines a value object for a search response.
Namespace
Drupal\google_appliance\SearchResultsCode
public function hasResults() {
return (bool) count($this->results);
}