You are here

final class MigrateEvents in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8 src/Event/MigrateEvents.php \Drupal\migrate_plus\Event\MigrateEvents
  2. 8.2 src/Event/MigrateEvents.php \Drupal\migrate_plus\Event\MigrateEvents
  3. 8.3 src/Event/MigrateEvents.php \Drupal\migrate_plus\Event\MigrateEvents
  4. 8.4 src/Event/MigrateEvents.php \Drupal\migrate_plus\Event\MigrateEvents

Defines the row preparation event for the migration system.

Hierarchy

Expanded class hierarchy of MigrateEvents

See also

\Drupal\migrate\Event\MigratePrepareRowEvent

1 file declares its use of MigrateEvents
migrate_plus.module in ./migrate_plus.module
Provides enhancements for implementing and managing migrations.

File

src/Event/MigrateEvents.php, line 10

Namespace

Drupal\migrate_plus\Event
View source
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';

  /**
   * Name of the event fired when a source item is missing.
   *
   * This event allows modules to perform an action whenever a specific item is
   * missing from the source. The event listener method receives a
   * \Drupal\migrate\Event\MigrateRowDeleteEvent instance.
   *
   * @Event
   *
   * @see \Drupal\migrate\Event\MigrateRowDeleteEvent
   */
  const MISSING_SOURCE_ITEM = 'migrate_plus.missing_source_item';

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateEvents::MISSING_SOURCE_ITEM constant Name of the event fired when a source item is missing.
MigrateEvents::PREPARE_ROW constant Name of the event fired when preparing a source data row.