You are here

public function EntityViewMode::rollback in Drupal 10

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

Delete the specified destination object from the target Drupal.

Parameters

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

Overrides EntityConfigBase::rollback

File

core/modules/migrate/src/Plugin/migrate/destination/EntityViewMode.php, line 45

Class

EntityViewMode
Provides entity view mode destination plugin.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function rollback(array $destination_identifier) {
  $destination_identifier = implode('.', $destination_identifier);
  parent::rollback([
    $destination_identifier,
  ]);
}