interface RollbackAwareInterface

Same name in other branches
  1. 9 core/modules/migrate/src/Event/RollbackAwareInterface.php \Drupal\migrate\Event\RollbackAwareInterface
  2. 8.9.x core/modules/migrate/src/Event/RollbackAwareInterface.php \Drupal\migrate\Event\RollbackAwareInterface
  3. 11.x core/modules/migrate/src/Event/RollbackAwareInterface.php \Drupal\migrate\Event\RollbackAwareInterface

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

Hierarchy

Expanded class hierarchy of RollbackAwareInterface

All classes that implement RollbackAwareInterface

2 files declare their use of RollbackAwareInterface
PluginEventSubscriber.php in core/modules/migrate/src/Plugin/PluginEventSubscriber.php
SourcePluginBase.php in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php

File

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

Namespace

Drupal\migrate\Event
View source
interface RollbackAwareInterface {
    
    /**
     * Performs pre-rollback tasks.
     *
     * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
     *   The pre-rollback event object.
     */
    public function preRollback(MigrateRollbackEvent $event);
    
    /**
     * Performs post-rollback tasks.
     *
     * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
     *   The post-rollback event object.
     */
    public function postRollback(MigrateRollbackEvent $event);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
RollbackAwareInterface::postRollback public function Performs post-rollback tasks. 1
RollbackAwareInterface::preRollback public function Performs pre-rollback tasks. 1

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