public function MigrateRollbackEvent::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Event/MigrateRollbackEvent.php \Drupal\migrate\Event\MigrateRollbackEvent::__construct()
Constructs a 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\EventCode
public function __construct(MigrationInterface $migration) {
$this->migration = $migration;
}