You are here

public function Synonym::getWord in Search API Synonym 8

Gets the Synonym word.

Return value

string Word of the Synonym.

Overrides SynonymInterface::getWord

File

src/Entity/Synonym.php, line 80

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

public function getWord() {
  return $this
    ->get('word')->value;
}