ImportAwareInterface.php

Same filename in other branches
  1. 9 core/modules/migrate/src/Event/ImportAwareInterface.php
  2. 10 core/modules/migrate/src/Event/ImportAwareInterface.php
  3. 11.x core/modules/migrate/src/Event/ImportAwareInterface.php

Namespace

Drupal\migrate\Event

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

Title Deprecated Summary
ImportAwareInterface Interface for plugins that react to pre- or post-import events.

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