You are here

public function SynonymsBehavior::extractSynonyms in Synonyms 7

Extract synonyms from an entity within a specific behavior implementation.

Parameters

object $entity: Entity from which to extract synonyms

string $langcode: Language code for which to extract synonyms from the entity, if one is known

Return value

array Array of synonyms extracted from $entity Array of synonyms extracted from $entity

7 methods override SynonymsBehavior::extractSynonyms()
AbstractPropertySynonymsBehavior::extractSynonyms in synonyms_provider_property/includes/AbstractPropertySynonymsBehavior.class.inc
Extract synonyms from an entity within a specific behavior implementation.
CommercePriceSynonymsBehavior::extractSynonyms in synonyms_commerce/includes/CommercePriceSynonymsBehavior.class.inc
Extract synonyms from an entity within a specific behavior implementation.
CommerceProductReferenceSynonymsBehavior::extractSynonyms in synonyms_commerce/includes/CommerceProductReferenceSynonymsBehavior.class.inc
Extract synonyms from an entity within a specific behavior implementation.
EntityReferenceSynonymsBehavior::extractSynonyms in synonyms_provider_field/includes/EntityReferenceSynonymsBehavior.class.inc
Extract synonyms from an entity within a specific behavior implementation.
MySynonymsSynonymsBehavior::extractSynonyms in ./synonyms.api.php
Extract synonyms from an entity within a specific behavior implementation.

... See full list

File

includes/SynonymsBehavior.interface.inc, line 27
Interfaces of synonyms behaviors that are shipped with Synonyms module.

Class

SynonymsBehavior
General interface of a synonyms behavior.

Code

public function extractSynonyms($entity, $langcode = NULL);