You are here

class AkamaiHeaderEvents in Akamai 8.3

Event that is fired when Akamai header is formed.

Hierarchy

  • class \Drupal\akamai\Event\AkamaiHeaderEvents extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of AkamaiHeaderEvents

5 files declare their use of AkamaiHeaderEvents
CacheableResponseSubscriber.php in src/EventSubscriber/CacheableResponseSubscriber.php
CacheableResponseSubscriberTest.php in tests/src/Kernel/EventSubscriber/CacheableResponseSubscriberTest.php
EdgeCacheTagHeaderTest.php in tests/src/Kernel/EdgeCacheTagHeaderTest.php
MockHeaderSubscriber.php in tests/src/Kernel/MockHeaderSubscriber.php
MockSubscriber.php in tests/src/Kernel/EventSubscriber/MockSubscriber.php

File

src/Event/AkamaiHeaderEvents.php, line 10

Namespace

Drupal\akamai\Event
View source
class AkamaiHeaderEvents extends Event {

  /**
   * The event dispatched when a response is received for a purge request.
   */
  const HEADER_CREATION = 'akamai.header_creation';

  /**
   * The tag array.
   *
   * @var array
   * The tags/urls/cp codes to manipulate for the header.
   */
  public $data;

  /**
   * Constructs the array.
   *
   * @param array $data
   *   The tags/urls/cp codes to manipulate for the header.
   */
  public function __construct(array $data) {
    $this->data = $data;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AkamaiHeaderEvents::$data public property The tag array.
AkamaiHeaderEvents::HEADER_CREATION constant The event dispatched when a response is received for a purge request.
AkamaiHeaderEvents::__construct public function Constructs the array.