function ConfigSubscriber::getSubscribedEvents

Same name in this branch
  1. 10 core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()
Same name in other branches
  1. 9 core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::getSubscribedEvents()
  2. 9 core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()
  3. 8.9.x core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::getSubscribedEvents()
  4. 8.9.x core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()
  5. 11.x core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::getSubscribedEvents()
  6. 11.x core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()

File

core/modules/language/src/EventSubscriber/ConfigSubscriber.php, line 143

Class

ConfigSubscriber
Deletes the container if default language has changed.

Namespace

Drupal\language\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[ConfigEvents::SAVE][] = [
        'onConfigSave',
        0,
    ];
    return $events;
}

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