public function import(Row
$row, array
$old_destination_id_values =
[]) { if ($row->
isStub()) { throw new MigrateException('Config entities can not be stubbed.'
);
} $this->rollbackAction = MigrateIdMapInterface::ROLLBACK_DELETE;
$ids =
$this->
getIds();
$id_key =
$this->
getKey('id'
);
if (count($ids) > 1
) { // Ids is keyed by the key name so grab the keys.
$id_keys =
array_keys($ids);
if (!
$row->
getDestinationProperty($id_key)) { // Set the ID into the destination in for form "val1.val2.val3".
$row->
setDestinationProperty($id_key,
$this->
generateId($row,
$id_keys));
} } $entity =
$this->
getEntity($row,
$old_destination_id_values);
// Translations are already saved in updateEntity by configuration override.
if (!
$this->
isTranslationDestination()) { $entity->
save();
} if (count($ids) > 1
) { // This can only be a config entity, content entities have their ID key