You are here

public function PolicyAlterEvent::getPolicy in Content-Security-Policy 8

Retrieve the defined CSP policy.

Return value

\Drupal\csp\Csp The CSP policy.

File

src/Event/PolicyAlterEvent.php, line 47

Class

PolicyAlterEvent
Event for altering a response CSP Policy.

Namespace

Drupal\csp\Event

Code

public function getPolicy() {
  return $this->policy;
}