migrate_plus-8.x-5.x-dev/src/Event/MigrateEvents.php

src/Event/MigrateEvents.php
<?php

declare(strict_types=1);

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
   * reads the initial 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
   */
  public 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
   */
  public const MISSING_SOURCE_ITEM = 'migrate_plus.missing_source_item';

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc