You are here

public function ConfigManager::shouldHeaderBeRemoved in Remove HTTP headers 8

Whether or not the route with given name should be protected.

Parameters

string $headerName: A HTTP header name.

Return value

bool Should HTTP header with given name be removed.

File

src/Config/ConfigManager.php, line 210

Class

ConfigManager
Manages module configuration.

Namespace

Drupal\remove_http_headers\Config

Code

public function shouldHeaderBeRemoved(string $headerName) : bool {
  return in_array($headerName, $this
    ->getHeadersToRemove());
}