You are here

public static function Csp::getDirectiveNames in Content-Security-Policy 8

Get the valid directive names.

Return value

array An array of directive names.

1 call to Csp::getDirectiveNames()
CspSettingsForm::getConfigurableDirectives in src/Form/CspSettingsForm.php
Get the directives that should be configurable.

File

src/Csp.php, line 178

Class

Csp
A CSP Header.

Namespace

Drupal\csp

Code

public static function getDirectiveNames() {
  return array_keys(self::DIRECTIVES);
}