public static function PluginEventSubscriber::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/Plugin/PluginEventSubscriber.php \Drupal\migrate\Plugin\PluginEventSubscriber::getSubscribedEvents()
File
- core/
modules/ migrate/ src/ Plugin/ PluginEventSubscriber.php, line 84
Class
- PluginEventSubscriber
- Event subscriber to forward Migrate events to source and destination plugins.
Namespace
Drupal\migrate\PluginCode
public static function getSubscribedEvents() {
$events = [];
$events[MigrateEvents::PRE_IMPORT][] = [
'preImport',
];
$events[MigrateEvents::POST_IMPORT][] = [
'postImport',
];
$events[MigrateEvents::PRE_ROLLBACK][] = [
'preRollback',
];
$events[MigrateEvents::POST_ROLLBACK][] = [
'postRollback',
];
return $events;
}