You are here

public function AbstractFieldSynonymsBehavior::featuresExportPipe in Synonyms 7

Collect info on features pipe during invocation of hook_features_export().

If your synonyms provider depends on some other features components, this method should return them.

Return value

array Array of features pipe as per hook_features_export() specification

Overrides AbstractSynonymsBehavior::featuresExportPipe

File

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

Class

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

Code

public function featuresExportPipe() {
  $pipe = parent::featuresExportPipe();

  // We include the Features component for the underlying field on which this
  // synonyms provider is built.
  $pipe['field'][] = implode('-', array(
    $this->behavior_implementation['entity_type'],
    $this->behavior_implementation['bundle'],
    $this->field['field_name'],
  ));
  return $pipe;
}