Mercurial > hg > cmmr2012-drupal-site
diff modules/contrib/migrate_plus/src/Event/MigrateEvents.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/contrib/migrate_plus/src/Event/MigrateEvents.php Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,29 @@ +<?php + +namespace Drupal\migrate_plus\Event; + +/** + * Defines the row preparation event for the migration system. + * + * @see \Drupal\migrate\Event\MigratePrepareRowEvent + */ +final class MigrateEvents { + + /** + * Name of the event fired when preparing a source data row. + * + * This event allows modules to perform an action whenever the source plugin + * has read the inital source data into a Row object. Typically, this would be + * used to add data to the row, manipulate the data into a canonical form, or + * signal by exception that the row should be skipped. The event listener + * method receives a \Drupal\migrate_plus\Event\MigratePrepareRowEvent instance. + * + * @Event + * + * @see \Drupal\migrate_plus\Event\MigratePrepareRowEvent + * + * @var string + */ + const PREPARE_ROW = 'migrate_plus.prepare_row'; + +}