You are here

public function MultiversionMigration::cleanupMigration in Multiversion 8

Removes the map and message tables for a migration.

Parameters

int $id: The migration ID.

Overrides MultiversionMigrationInterface::cleanupMigration

File

src/MultiversionMigration.php, line 196

Class

MultiversionMigration

Namespace

Drupal\multiversion

Code

public function cleanupMigration($id) {
  \Drupal::service('plugin.manager.migration')
    ->createStubMigration([
    'id' => $id,
  ])
    ->getIdMap()
    ->destroy();
}