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\EntityCode
public function getSynonyms() {
return $this
->get('synonyms')->value;
}