You are here

public static function ConfigImportValidateEventSubscriberBase::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase::getSubscribedEvents()
  2. 10 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase::getSubscribedEvents()
1 method overrides ConfigImportValidateEventSubscriberBase::getSubscribedEvents()
ConfigSubscriber::getSubscribedEvents in core/modules/config/src/ConfigSubscriber.php
Returns an array of event names this subscriber wants to listen to.

File

core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php, line 25

Class

ConfigImportValidateEventSubscriberBase
Defines a base event listener implementation for config sync validation.

Namespace

Drupal\Core\Config

Code

public static function getSubscribedEvents() {
  $events[ConfigEvents::IMPORT_VALIDATE][] = [
    'onConfigImporterValidate',
    20,
  ];
  return $events;
}