You are here

class FeedImportMergeOverwriteFast in Feed Import 8

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

Hierarchy

Expanded class hierarchy of FeedImportMergeOverwriteFast

File

feed_import_base/src/FeedImportMergeOverwriteFast.php, line 8

Namespace

Drupal\feed_import_base
View source
class FeedImportMergeOverwriteFast extends FeedImportMergeField {

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

}

Members

Namesort descending Modifiers Type Description Overrides
FeedImportMergeField::overwriteEmpty public function Remove field if is missing from source. 1
FeedImportMergeOverwriteFast::merge public function Merge the new and current field values. The merge should be set in $current ref. variable Overrides FeedImportMergeField::merge