function MigrateRollbackEvent::__construct

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Event/MigrateRollbackEvent.php \Drupal\migrate\Event\MigrateRollbackEvent::__construct()
  2. 10 core/modules/migrate/src/Event/MigrateRollbackEvent.php \Drupal\migrate\Event\MigrateRollbackEvent::__construct()
  3. 11.x core/modules/migrate/src/Event/MigrateRollbackEvent.php \Drupal\migrate\Event\MigrateRollbackEvent::__construct()

Constructs an rollback event object.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: Migration entity.

File

core/modules/migrate/src/Event/MigrateRollbackEvent.php, line 26

Class

MigrateRollbackEvent
Wraps a pre- or post-rollback event for event listeners.

Namespace

Drupal\migrate\Event

Code

public function __construct(MigrationInterface $migration) {
    $this->migration = $migration;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.