MigrateEvents
final class MigrateEvents (View source)
Defines events for the migration system.
Constants
| MAP_SAVE |
Name of the event fired when saving to a migration's map. This event allows modules to perform an action whenever the disposition of an item being migrated is saved to the map table. The event listener method receives a \Drupal\migrate\Event\MigrateMapSaveEvent instance. |
| MAP_DELETE |
Name of the event fired when removing an entry from a migration's map. This event allows modules to perform an action whenever a row is deleted from a migration's map table (implying it has been rolled back). The event listener method receives a \Drupal\migrate\Event\MigrateMapDeleteEvent instance. |
| PRE_IMPORT |
Name of the event fired when beginning a migration import operation. This event allows modules to perform an action whenever a migration import operation is about to begin. The event listener method receives a \Drupal\migrate\Event\MigrateImportEvent instance. |
| POST_IMPORT |
Name of the event fired when finishing a migration import operation. This event allows modules to perform an action whenever a migration import operation is completing. The event listener method receives a \Drupal\migrate\Event\MigrateImportEvent instance. |
| PRE_ROW_SAVE |
Name of the event fired when about to import a single item. This event allows modules to perform an action whenever a specific item is about to be saved by the destination plugin. The event listener method receives a \Drupal\migrate\Event\MigratePreRowSaveEvent instance. |
| POST_ROW_SAVE |
Name of the event fired just after a single item has been imported. This event allows modules to perform an action whenever a specific item has been saved by the destination plugin. The event listener method receives a \Drupal\migrate\Event\MigratePostRowSaveEvent instance. |
| PRE_ROLLBACK |
Name of the event fired when beginning a migration rollback operation. This event allows modules to perform an action whenever a migration rollback operation is about to begin. The event listener method receives a \Drupal\migrate\Event\MigrateRollbackEvent instance. |
| POST_ROLLBACK |
Name of the event fired when finishing a migration rollback operation. This event allows modules to perform an action whenever a migration rollback operation is completing. The event listener method receives a \Drupal\migrate\Event\MigrateRollbackEvent instance. |
| PRE_ROW_DELETE |
Name of the event fired when about to delete a single item. This event allows modules to perform an action whenever a specific item is about to be deleted by the destination plugin. The event listener method receives a \Drupal\migrate\Event\MigrateRowDeleteEvent instance. |
| POST_ROW_DELETE |
Name of the event fired just after a single item has been deleted. This event allows modules to perform an action whenever a specific item has been deleted by the destination plugin. The event listener method receives a \Drupal\migrate\Event\MigrateRowDeleteEvent instance. |
| IDMAP_MESSAGE |
Name of the event fired when saving a message to the ID map. This event allows modules to perform an action whenever a message is being logged by the ID map. The event listener method receives a \Drupal\migrate\Event\MigrateIdMapMessageEvent instance. |