protected function ConfigManager::getHeadersToRemoveFromConfig in Remove HTTP headers 8
Returns the configured headers to remove from configuration.
Return value
array|null The config data. NULL if not in cache or invalid format.
1 call to ConfigManager::getHeadersToRemoveFromConfig()
- ConfigManager::getHeadersToRemove in src/
Config/ ConfigManager.php - Gets the HTTP headers that should be removed.
File
- src/
Config/ ConfigManager.php, line 123
Class
- ConfigManager
- Manages module configuration.
Namespace
Drupal\remove_http_headers\ConfigCode
protected function getHeadersToRemoveFromConfig() : ?array {
$headersToRemoveConfigData = $this
->getModuleConfig()
->get('headers_to_remove');
$headersToRemoveConfigData = $this
->validateHeadersToRemoveDataFormat($headersToRemoveConfigData);
return $headersToRemoveConfigData;
}