You are here

public function ResultSet::addSynonym in Google Search Appliance 8

Adds synonym.

Parameters

\Drupal\google_appliance\SearchResults\Synonym $synonym: Synonym.

Return value

$this

File

src/SearchResults/ResultSet.php, line 175

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addSynonym(Synonym $synonym) {
  $this->synonyms[] = $synonym;
  return $this;
}