return $entity;
} /**
* {@inheritdoc}
*/
protected function updateEntity(EntityInterface
$entity, Row
$row) { $entity = parent::
updateEntity($entity,
$row);
// Always set the rollback action to delete. This is because the parent
// updateEntity will set the rollback action to preserve for the original
// language row, which is needed for the classic node migrations.
$this->
setRollbackAction($row->
getIdMap(), MigrateIdMapInterface::ROLLBACK_DELETE
);
return $entity;
} /**
* {@inheritdoc}
*/
protected function save(ContentEntityInterface
$entity, array
$old_destination_id_values =
[]) { parent::
save($entity,
$old_destination_id_values);
return [ $entity->
id(),
$entity->
getRevisionId(),
];