You are here

public function SynonymsGetProviderInterface::getSynonyms in Synonyms 8

Fetch synonyms from an entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: Entity whose synonyms should be fetched.

Return value

string[] Array of extracted synonyms

File

src/SynonymsProviderInterface/SynonymsGetProviderInterface.php, line 21

Class

SynonymsGetProviderInterface
Interface to extract (get) synonyms from an entity.

Namespace

Drupal\synonyms\SynonymsProviderInterface

Code

public function getSynonyms(ContentEntityInterface $entity);