You are here

public function ResultSet::hasSynonyms in Google Search Appliance 8

Check if there are synonyms.

Return value

bool TRUE if synonyms exist.

File

src/SearchResults/ResultSet.php, line 307

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function hasSynonyms() {
  return (bool) count($this->synonyms);
}