You are here

public function AbstractFieldSynonymsBehavior::__construct in Synonyms 7

Overrides AbstractSynonymsBehavior::__construct

File

synonyms_provider_field/includes/AbstractFieldSynonymsBehavior.class.inc, line 27
Definition of AbstractFieldSynonymsBehavior class.

Class

AbstractFieldSynonymsBehavior
Abstract class for providing synonyms from fields attached to entities.

Code

public function __construct($behavior_implementation) {
  parent::__construct($behavior_implementation);
  $this->field = field_info_field(synonyms_provider_field_field_name($behavior_implementation['provider']));
  $this->instance = field_info_instance($behavior_implementation['entity_type'], $this->field['field_name'], $behavior_implementation['bundle']);
}