You are here

public function SynonymsGetProviderInterface::getSynonymsMultiple in Synonyms 8

Fetch synonyms from multiple entities at once.

Parameters

array $entities: Array of entities whose synonyms should be fetched. The array will be keyed by entity ID and all provided entities will be of the same entity type and bundle.

Return value

array Array of extracted synonyms. It must be keyed by entity ID and each sub array should represent a list of synonyms that were extracted from the corresponding entity

File

src/SynonymsProviderInterface/SynonymsGetProviderInterface.php, line 36

Class

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

Namespace

Drupal\synonyms\SynonymsProviderInterface

Code

public function getSynonymsMultiple(array $entities);