You are here

public function ScheduledUpdateType::addNewFieldMappings in Scheduled Updates 8

Add new mappings to existing field map.

New keys will replace on old keys.

Parameters

$new_map: Keys are field names on Update Type Values are fields on destination entity type.

Overrides ScheduledUpdateTypeInterface::addNewFieldMappings

File

src/Entity/ScheduledUpdateType.php, line 157
Contains \Drupal\scheduled_updates\Entity\ScheduledUpdateType.

Class

ScheduledUpdateType
Defines the Scheduled update type entity.

Namespace

Drupal\scheduled_updates\Entity

Code

public function addNewFieldMappings($new_map) {
  $this
    ->setFieldMap($new_map + $this->field_map);
}