You are here

ImportAwareInterface.php in Drupal 10

File

core/modules/migrate/src/Event/ImportAwareInterface.php
View source
<?php

namespace Drupal\migrate\Event;


/**
 * Interface for plugins that react to pre- or post-import events.
 */
interface ImportAwareInterface {

  /**
   * Performs pre-import tasks.
   *
   * @param \Drupal\migrate\Event\MigrateImportEvent $event
   *   The pre-import event object.
   */
  public function preImport(MigrateImportEvent $event);

  /**
   * Performs post-import tasks.
   *
   * @param \Drupal\migrate\Event\MigrateImportEvent $event
   *   The post-import event object.
   */
  public function postImport(MigrateImportEvent $event);

}

Interfaces

Namesort descending Description
ImportAwareInterface Interface for plugins that react to pre- or post-import events.