function SystemConfigSubscriber::getSubscribedEvents

Same name and namespace in other branches
  1. 9 core/modules/system/src/SystemConfigSubscriber.php \Drupal\system\SystemConfigSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/system/src/SystemConfigSubscriber.php \Drupal\system\SystemConfigSubscriber::getSubscribedEvents()
  3. 11.x core/modules/system/src/SystemConfigSubscriber.php \Drupal\system\SystemConfigSubscriber::getSubscribedEvents()

File

core/modules/system/src/SystemConfigSubscriber.php, line 87

Class

SystemConfigSubscriber
System Config subscriber.

Namespace

Drupal\system

Code

public static function getSubscribedEvents() : array {
  $events[ConfigEvents::SAVE][] = [
    'onConfigSave',
    0,
  ];
  // The empty check has a high priority so that it can stop propagation if
  // there is no configuration to import.
  $events[ConfigEvents::IMPORT_VALIDATE][] = [
    'onConfigImporterValidateNotEmpty',
    512,
  ];
  $events[ConfigEvents::IMPORT_VALIDATE][] = [
    'onConfigImporterValidateSiteUUID',
    256,
  ];
  return $events;
}

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