You are here

public static function ConfigCacheTag::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/EventSubscriber/ConfigCacheTag.php \Drupal\system\EventSubscriber\ConfigCacheTag::getSubscribedEvents()
  2. 9 core/modules/system/src/EventSubscriber/ConfigCacheTag.php \Drupal\system\EventSubscriber\ConfigCacheTag::getSubscribedEvents()

File

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

Class

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

Namespace

Drupal\system\EventSubscriber

Code

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