You are here

public function FeedImportMergeOverwriteFast::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

Overrides FeedImportMergeField::merge

File

feed_import_base/src/FeedImportMergeOverwriteFast.php, line 13

Class

FeedImportMergeOverwriteFast
This class just overwrites values without any checks. Does not overwrites values if are missing from source.

Namespace

Drupal\feed_import_base

Code

public function merge(array &$current, array &$new, array &$field) {
  $current = $new;
  return TRUE;
}