public function CerPresetFeaturesController::export in Corresponding Entity References 7.3
Overridden.
Overrides EntityDefaultFeaturesController::export
File
- includes/
CerPresetFeaturesController.inc, line 12
Class
- CerPresetFeaturesController
- Contains the controller class for exporting CER presets via Features.
Code
public function export($data, &$export, $module = '') {
$pipe = parent::export($data, $export, $module);
// Every field in both chains may need to export additional things (the
// field base and instance definitions at least, plus any extra dependencies).
// All that logic is delegated to CerFieldChain.
foreach (entity_load_multiple_by_name($this->type, $data) as $preset) {
$pipe = array_merge_recursive($pipe, $preset->wrapper->cer_left->chain
->value()
->export());
$pipe = array_merge_recursive($pipe, $preset->wrapper->cer_right->chain
->value()
->export());
}
return $pipe;
}