public function NullIdMap::saveIdMapping in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php \Drupal\migrate\Plugin\migrate\id_map\NullIdMap::saveIdMapping()
- 10 core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php \Drupal\migrate\Plugin\migrate\id_map\NullIdMap::saveIdMapping()
Saves a mapping from the source identifiers to the destination identifiers.
Called upon import of one row, we record a mapping from the source ID to the destination ID. Also may be called, setting the third parameter to NEEDS_UPDATE, to signal an existing record should be re-migrated.
Parameters
\Drupal\migrate\Row $row: The raw source data. We use the ID map derived from the source object to get the source identifier values.
array $destination_id_values: An array of destination identifier values.
int $status: (optional) Status of the source row in the map. Defaults to self::STATUS_IMPORTED.
int $rollback_action: (optional) How to handle the destination object on rollback. Defaults to self::ROLLBACK_DELETE.
Overrides MigrateIdMapInterface::saveIdMapping
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php, line 65
Class
- NullIdMap
- Defines the null ID map implementation.
Namespace
Drupal\migrate\Plugin\migrate\id_mapCode
public function saveIdMapping(Row $row, array $destination_id_values, $source_row_status = MigrateIdMapInterface::STATUS_IMPORTED, $rollback_action = MigrateIdMapInterface::ROLLBACK_DELETE) {
// Do nothing.
}