You are here

public static function CloudFlareCacheTagHeaderGenerator::getSubscribedEvents in CloudFlare 8

File

modules/cloudflarepurger/src/EventSubscriber/CloudFlareCacheTagHeaderGenerator.php, line 106

Class

CloudFlareCacheTagHeaderGenerator
Generates a 'Cache-Tag' header in the format expected by CloudFlare.

Namespace

Drupal\cloudflarepurger\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::RESPONSE][] = [
    'onResponse',
  ];
  return $events;
}