function ConfigCacheTag::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/system/src/EventSubscriber/ConfigCacheTag.php \Drupal\system\EventSubscriber\ConfigCacheTag::getSubscribedEvents()
  2. 10 core/modules/system/src/EventSubscriber/ConfigCacheTag.php \Drupal\system\EventSubscriber\ConfigCacheTag::getSubscribedEvents()
  3. 11.x core/modules/system/src/EventSubscriber/ConfigCacheTag.php \Drupal\system\EventSubscriber\ConfigCacheTag::getSubscribedEvents()

File

core/modules/system/src/EventSubscriber/ConfigCacheTag.php, line 76

Class

ConfigCacheTag
A subscriber invalidating cache tags when system config objects are saved.

Namespace

Drupal\system\EventSubscriber

Code

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

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