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