public static function Csp::getDirectiveSchema in Content-Security-Policy 8
Get the schema constant for a directive.
Parameters
string $name: The directive name.
Return value
string A DIRECTIVE_SCHEMA_* constant value
2 calls to Csp::getDirectiveSchema()
- CspSettingsForm::buildForm in src/
Form/ CspSettingsForm.php - Form constructor.
- CspSettingsForm::submitForm in src/
Form/ CspSettingsForm.php - Form submission handler.
File
- src/
Csp.php, line 191
Class
- Csp
- A CSP Header.
Namespace
Drupal\cspCode
public static function getDirectiveSchema($name) {
self::validateDirectiveName($name);
return self::DIRECTIVES[$name];
}