class FeedImportMergeOverwriteFast in Feed Import 8
This class just overwrites values without any checks. Does not overwrites values if are missing from source.
Hierarchy
- class \Drupal\feed_import_base\FeedImportMergeField
- class \Drupal\feed_import_base\FeedImportMergeOverwriteFast
Expanded class hierarchy of FeedImportMergeOverwriteFast
File
- feed_import_base/
src/ FeedImportMergeOverwriteFast.php, line 8
Namespace
Drupal\feed_import_baseView source
class FeedImportMergeOverwriteFast extends FeedImportMergeField {
/**
* {@inheritdoc}
*/
public function merge(array &$current, array &$new, array &$field) {
$current = $new;
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedImportMergeField:: |
public | function | Remove field if is missing from source. | 1 |
FeedImportMergeOverwriteFast:: |
public | function |
Merge the new and current field values.
The merge should be set in $current ref. variable Overrides FeedImportMergeField:: |