abstract public function GetTrait::getSynonyms in Synonyms 2.0.x
Fetch synonyms from an entity.
Parameters
Drupal\Core\Entity\ContentEntityInterface $entity: Entity whose synonyms should be fetched.
Return value
string[] Array of extracted synonyms
1 call to GetTrait::getSynonyms()
- GetTrait::getSynonymsMultiple in src/
ProviderInterface/ GetTrait.php - Fetch synonyms from multiple entities at once.
File
- src/
ProviderInterface/ GetTrait.php, line 44
Class
- GetTrait
- Trait to extract synonyms from an entity.
Namespace
Drupal\synonyms\ProviderInterfaceCode
public abstract function getSynonyms(ContentEntityInterface $entity);