public function GetInterface::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
3 methods override GetInterface::getSynonyms()
- BaseField::getSynonyms in src/
Plugin/ Synonyms/ Provider/ BaseField.php - Fetch synonyms from an entity.
- EntityReferenceField::getSynonyms in src/
Plugin/ Synonyms/ Provider/ EntityReferenceField.php - Fetch synonyms from an entity.
- Field::getSynonyms in src/
Plugin/ Synonyms/ Provider/ Field.php - Fetch synonyms from an entity.
File
- src/
ProviderInterface/ GetInterface.php, line 21
Class
- GetInterface
- Interface to extract (get) synonyms from an entity.
Namespace
Drupal\synonyms\ProviderInterfaceCode
public function getSynonyms(ContentEntityInterface $entity);