You are here

protected function ConfigManager::saveHeadersToRemoveToCache in Remove HTTP headers 8

Saves given array to the cache.

Parameters

array $headersToRemove: Array of headers that should be removed.

1 call to ConfigManager::saveHeadersToRemoveToCache()
ConfigManager::getHeadersToRemove in src/Config/ConfigManager.php
Gets the HTTP headers that should be removed.

File

src/Config/ConfigManager.php, line 160

Class

ConfigManager
Manages module configuration.

Namespace

Drupal\remove_http_headers\Config

Code

protected function saveHeadersToRemoveToCache(array $headersToRemove) : void {
  $this->cache
    ->set(self::HEADERS_TO_REMOVE_CACHE_ID, $headersToRemove, CacheBackendInterface::CACHE_PERMANENT, [
    self::HEADERS_TO_REMOVE_CACHE_TAG,
  ]);
}