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

Breadcrumb

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

function ExcludedModulesEventSubscriber::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/lib/Drupal/Core/EventSubscriber/ExcludedModulesEventSubscriber.php, line 57

Class

ExcludedModulesEventSubscriber
The event subscriber preventing excluded modules to be exported.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    // React early on export and late on import.
    return [
        'config.transform.import' => [
            'onConfigTransformImport',
            -500,
        ],
        'config.transform.export' => [
            'onConfigTransformExport',
            500,
        ],
    ];
}
RSS feed
Powered by Drupal