interface TermMergeSynonymsBehavior in Term Merge 7
Interface for merging one term into another.
Hierarchy
- interface \SynonymsBehavior
- interface \TermMergeSynonymsBehavior
Expanded class hierarchy of TermMergeSynonymsBehavior
All classes that implement TermMergeSynonymsBehavior
1 string reference to 'TermMergeSynonymsBehavior'
- term_merge.inc in plugins/
behavior/ term_merge.inc
File
- includes/
TermMergeSynonymsBehavior.interface.inc, line 11 - Interface of synonyms behaviors for merging terms.
View source
interface TermMergeSynonymsBehavior extends SynonymsBehavior {
/**
* Add an entity as a synonym into another entity.
*
* Basically this method should be called when you want to add some entity as
* a synonym to another entity (for example when you merge one entity into
* another and besides merging want to add synonym of the merged entity into
* the trunk entity). You should update $trunk_entity in such a way that it
* holds $synonym_entity as a synonym (it all depends on how data is stored in
* your behavior implementation, but probably you will store entity label or
* its ID as you cannot literally store an entity inside of another entity).
* If entity of type $synonym_entity_type cannot be converted into a format
* expected by your behavior implementation, just do nothing.
*
* @param object $trunk_entity
* Entity into which another one should be added as synonym
* @param object $synonym_entity
* Fully loaded entity object which has to be added as synonym
* @param string $synonym_entity_type
* Entity type of $synonym_entity
*/
public function mergeTerm($trunk_entity, $synonym_entity, $synonym_entity_type);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SynonymsBehavior:: |
public | function | Extract synonyms from an entity within a specific behavior implementation. | 7 |
SynonymsBehavior:: |
public | function | Collect info on features pipe during invocation of hook_features_export(). | 1 |
SynonymsBehavior:: |
public | function | Add an entity as a synonym into another entity. | 7 |
SynonymsBehavior:: |
public | function | Look up entities by their synonyms within a behavior implementation. | 7 |
TermMergeSynonymsBehavior:: |
public | function | Add an entity as a synonym into another entity. | 3 |