You are here

public function MockSubscriber::onHeaderCreation in Akamai 8.3

Add cache tags header on cacheable responses.

Parameters

\Drupal\akamai\Event\AkamaiHeaderEvents $event: The event to process.

File

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

Class

MockSubscriber
Mock Event Subscriber for testing.

Namespace

Drupal\Tests\akamai\Kernel\EventSubscriber

Code

public function onHeaderCreation(AkamaiHeaderEvents $event) {
  $this->event = $event;
  $event->data[] = 'on_header_creation';
}