interface ImportAwareInterface

Same name in other branches
  1. 9 core/modules/migrate/src/Event/ImportAwareInterface.php \Drupal\migrate\Event\ImportAwareInterface
  2. 10 core/modules/migrate/src/Event/ImportAwareInterface.php \Drupal\migrate\Event\ImportAwareInterface
  3. 11.x 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

Title Sort descending Modifiers Object type Summary
ImportAwareInterface::postImport public function Performs post-import tasks.
ImportAwareInterface::preImport public function Performs pre-import tasks.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.