You are here

public function EntityContentComplete::rollback in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php \Drupal\migrate\Plugin\migrate\destination\EntityContentComplete::rollback()
  2. 9 core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php \Drupal\migrate\Plugin\migrate\destination\EntityContentComplete::rollback()

Delete the specified destination object from the target Drupal.

Parameters

array $destination_identifier: The ID of the destination object to delete.

Overrides EntityContentBase::rollback

File

core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php, line 135

Class

EntityContentComplete
Provides a destination for migrating the entire entity revision table.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function rollback(array $destination_identifier) {

  // We want to delete the entity and all the translations so use
  // Entity:rollback because EntityContentBase::rollback will not remove the
  // default translation.
  Entity::rollback($destination_identifier);
}