You are here

public function AddHTTPHeaders::__construct in HTTP Response Headers 2.0.x

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/AddHTTPHeaders.php \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders::__construct()

Constructs a new Google Tag response subscriber.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service.

File

src/EventSubscriber/AddHTTPHeaders.php, line 33
Contains \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders.

Class

AddHTTPHeaders
Provides AddHTTPHeaders.

Namespace

Drupal\http_response_headers\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $configFactory) {
  $this->entityManager = \Drupal::entityTypeManager()
    ->getStorage('response_header');
}