public static function Csp::getDirectiveFallbackList in Content-Security-Policy 8
Get the fallback list for a directive.
Parameters
string $name: The directive name.
Return value
array An ordered list of fallback directives.
3 calls to Csp::getDirectiveFallbackList()
- Csp::fallbackAwareAppendIfEnabled in src/
Csp.php - Append to a directive if it or a fallback directive is enabled.
- Csp::getHeaderValue in src/
Csp.php - Get the header value.
- CspSettingsForm::buildForm in src/
Form/ CspSettingsForm.php - Form constructor.
File
- src/
Csp.php, line 206
Class
- Csp
- A CSP Header.
Namespace
Drupal\cspCode
public static function getDirectiveFallbackList($name) {
self::validateDirectiveName($name);
if (array_key_exists($name, self::DIRECTIVES_FALLBACK)) {
return self::DIRECTIVES_FALLBACK[$name];
}
return [];
}