public function MockHeaderSubscriber::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/ MockHeaderSubscriber.php, line 27
Class
- MockHeaderSubscriber
- Mock Event Subscriber for testing.
Namespace
Drupal\Tests\akamai\KernelCode
public function onHeaderCreation(AkamaiHeaderEvents $event) {
$event->data[] = 'helloworld';
}