You are here

interface ImportAwareInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Event/ImportAwareInterface.php \Drupal\migrate\Event\ImportAwareInterface

Interface for plugins that react to pre- or post-import events.

Hierarchy

Expanded class hierarchy of ImportAwareInterface

All classes that implement ImportAwareInterface

1 file declares its use of ImportAwareInterface
PluginEventSubscriber.php in core/modules/migrate/src/Plugin/PluginEventSubscriber.php

File

core/modules/migrate/src/Event/ImportAwareInterface.php, line 8

Namespace

Drupal\migrate\Event
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ImportAwareInterface::postImport public function Performs post-import tasks.
ImportAwareInterface::preImport public function Performs pre-import tasks.