You are here

public static function MockSubscriber::getSubscribedEvents in Akamai 8.3

File

tests/src/Kernel/EventSubscriber/MockSubscriber.php, line 24

Class

MockSubscriber
Mock Event Subscriber for testing.

Namespace

Drupal\Tests\akamai\Kernel\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[AkamaiHeaderEvents::HEADER_CREATION][] = [
    'onHeaderCreation',
  ];
  $events[AkamaiPurgeEvents::PURGE_CREATION][] = [
    'onPurgeCreation',
  ];
  return $events;
}