You are here

public function ResultSet::hasErrors in Google Search Appliance 8

Check if response is in error.

Return value

bool TRUE if errors occurred.

File

src/SearchResults/ResultSet.php, line 109

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function hasErrors() {
  return (bool) array_filter($this->errors);
}