You are here

public function EntityReferenceRevisions::rollback in Entity Reference Revisions 8

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

src/Plugin/migrate/destination/EntityReferenceRevisions.php, line 158

Class

EntityReferenceRevisions
Provides entity_reference_revisions destination plugin.

Namespace

Drupal\entity_reference_revisions\Plugin\migrate\destination

Code

public function rollback(array $destination_identifiers) {
  if ($this
    ->isTranslationDestination()) {
    $this
      ->rollbackTranslation($destination_identifiers);
  }
  else {
    $this
      ->rollbackNonTranslation($destination_identifiers);
  }
}