class PluginEventSubscriber implements EventSubscriberInterface (View source)

Event subscriber to forward Migrate events to source and destination plugins.

Methods

invoke(string $method, MigrateImportEvent|MigrateRollbackEvent $event, string $plugin_interface)

Tries to invoke event handling methods on source and destination plugins.

preImport(MigrateImportEvent $event)

Forwards pre-import events to the source and destination plugins.

postImport(MigrateImportEvent $event)

Forwards post-import events to the source and destination plugins.

preRollback(MigrateRollbackEvent $event)

Forwards pre-rollback events to the source and destination plugins.

postRollback(MigrateRollbackEvent $event)

Forwards post-rollback events to the source and destination plugins.

static 
getSubscribedEvents()

{@inheritdoc}

Details

protected invoke(string $method, MigrateImportEvent|MigrateRollbackEvent $event, string $plugin_interface)

Tries to invoke event handling methods on source and destination plugins.

Parameters

string $method

The method to invoke.

MigrateImportEvent|MigrateRollbackEvent $event

The event that has triggered the invocation.

string $plugin_interface

The interface which plugins must implement in order to be invoked.

preImport(MigrateImportEvent $event)

Forwards pre-import events to the source and destination plugins.

Parameters

MigrateImportEvent $event

The import event.

postImport(MigrateImportEvent $event)

Forwards post-import events to the source and destination plugins.

Parameters

MigrateImportEvent $event

The import event.

preRollback(MigrateRollbackEvent $event)

Forwards pre-rollback events to the source and destination plugins.

Parameters

MigrateRollbackEvent $event

The rollback event.

postRollback(MigrateRollbackEvent $event)

Forwards post-rollback events to the source and destination plugins.

Parameters

MigrateRollbackEvent $event

The rollback event.

static getSubscribedEvents()

{@inheritdoc}