You are here

public function Csp::removeDirective in Content-Security-Policy 8

Remove a directive from the policy.

Parameters

string $name: The directive name.

File

src/Csp.php, line 359

Class

Csp
A CSP Header.

Namespace

Drupal\csp

Code

public function removeDirective($name) {
  self::validateDirectiveName($name);
  unset($this->directives[$name]);
}