You are here

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

Create the string header representation.

Return value

string The full header string.

File

src/Csp.php, line 601

Class

Csp
A CSP Header.

Namespace

Drupal\csp

Code

public function __toString() {
  return $this
    ->getHeaderName() . ': ' . $this
    ->getHeaderValue();
}