abstract public function FeedImportMergeField::merge in Feed Import 8
Merge the new and current field values. The merge should be set in $current ref. variable
Parameters
array $current: Current field values
array $new: New field values
array $field: Field info cardinality - field cardinality compare - compare function for field value
Return value
bool True if $current was changed
4 methods override FeedImportMergeField::merge()
- FeedImportMergeDuplicates::merge in feed_import_base/
src/ FeedImportMergeDuplicates.php - Merge the new and current field values. The merge should be set in $current ref. variable
- FeedImportMergeNoDuplicates::merge in feed_import_base/
src/ FeedImportMergeNoDuplicates.php - Merge the new and current field values. The merge should be set in $current ref. variable
- FeedImportMergeOverwrite::merge in feed_import_base/
src/ FeedImportMergeOverwrite.php - Merge the new and current field values. The merge should be set in $current ref. variable
- FeedImportMergeOverwriteFast::merge in feed_import_base/
src/ FeedImportMergeOverwriteFast.php - Merge the new and current field values. The merge should be set in $current ref. variable
File
- feed_import_base/
src/ FeedImportMergeField.php, line 35
Class
- FeedImportMergeField
- Abstract class that helps merging fields on update.
Namespace
Drupal\feed_import_baseCode
public abstract function merge(array &$current, array &$new, array &$field);