public function Synonym::setSynonyms in Search API Synonym 8
Sets the synonyms to the word.
Parameters
string $synonyms: The synonyms.
Return value
\Drupal\search_api_synonym\SynonymInterface The called Synonym entity.
Overrides SynonymInterface::setSynonyms
File
- src/
Entity/ Synonym.php, line 111
Class
- Synonym
- Defines the Synonym entity.
Namespace
Drupal\search_api_synonym\EntityCode
public function setSynonyms($synonyms) {
$this
->set('synonyms', $synonyms);
return $this;
}