function ColorConfigCacheInvalidator::getSubscribedEvents

Same name and namespace in other branches
  1. 9 core/modules/color/src/EventSubscriber/ColorConfigCacheInvalidator.php \Drupal\color\EventSubscriber\ColorConfigCacheInvalidator::getSubscribedEvents()

File

core/modules/color/src/EventSubscriber/ColorConfigCacheInvalidator.php, line 49

Class

ColorConfigCacheInvalidator
A subscriber invalidating cache tags when color config objects are saved.

Namespace

Drupal\color\EventSubscriber

Code

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

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