function ConfigSubscriber::getSubscribedEvents

Same name in this branch
  1. 9 core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()
Same name in other branches
  1. 8.9.x core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/config/src/ConfigSubscriber.php \Drupal\config\ConfigSubscriber::getSubscribedEvents()
  3. 10 core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::getSubscribedEvents()
  4. 10 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() {
    $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.