You are here

public function Synonym::getSynonyms in Search API Synonym 8

Gets the synonyms.

Return value

string The synonyms to the word.

Overrides SynonymInterface::getSynonyms

File

src/Entity/Synonym.php, line 95

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

public function getSynonyms() {
  return $this
    ->get('synonyms')->value;
}