Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateRollbackEvent.php

class MigrateRollbackEvent

Wraps a pre- or post-rollback event for event listeners.

Hierarchy

  • class \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
    • class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
      • class \Drupal\migrate\Event\MigrateRollbackEvent extends \Drupal\Component\EventDispatcher\Event

Expanded class hierarchy of MigrateRollbackEvent

3 files declare their use of MigrateRollbackEvent
MigrateExecutable.php in core/modules/migrate/src/MigrateExecutable.php
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/MigrateRollbackEvent.php, line 11

Namespace

Drupal\migrate\Event
View source
class MigrateRollbackEvent extends Event {
    
    /**
     * Migration entity.
     *
     * @var \Drupal\migrate\Plugin\MigrationInterface
     */
    protected $migration;
    
    /**
     * Constructs a rollback event object.
     *
     * @param \Drupal\migrate\Plugin\MigrationInterface $migration
     *   Migration entity.
     */
    public function __construct(MigrationInterface $migration) {
        $this->migration = $migration;
    }
    
    /**
     * Gets the migration entity.
     *
     * @return \Drupal\migrate\Plugin\MigrationInterface
     *   The migration entity involved.
     */
    public function getMigration() {
        return $this->migration;
    }

}

Members

Title Sort descending Modifiers Object type Summary
MigrateRollbackEvent::$migration protected property Migration entity.
MigrateRollbackEvent::getMigration public function Gets the migration entity.
MigrateRollbackEvent::__construct public function Constructs a rollback event object.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal