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

Breadcrumb

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

function PluginEventSubscriber::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/modules/migrate/src/Plugin/PluginEventSubscriber.php, line 84

Class

PluginEventSubscriber
Event subscriber to forward Migrate events to source and destination plugins.

Namespace

Drupal\migrate\Plugin

Code

public static function getSubscribedEvents() : array {
    $events = [];
    $events[MigrateEvents::PRE_IMPORT][] = [
        'preImport',
    ];
    $events[MigrateEvents::POST_IMPORT][] = [
        'postImport',
    ];
    $events[MigrateEvents::PRE_ROLLBACK][] = [
        'preRollback',
    ];
    $events[MigrateEvents::POST_ROLLBACK][] = [
        'postRollback',
    ];
    return $events;
}

API Navigation

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