CspNonce
extends AbstractHelper
in package
CSP nonce view helper
Tags
Table of Contents
- $cspNonce : string
- CSP nonce
- __construct() : mixed
- Constructor
- __invoke() : string
- Return the current nonce
Properties
$cspNonce
CSP nonce
protected
string
$cspNonce
Methods
__construct()
Constructor
public
__construct(string $nonce) : mixed
Parameters
- $nonce : string
-
Nonce from nonce generator
Return values
mixed —__invoke()
Return the current nonce
public
__invoke() : string
Result is a base64 encoded string that does not need escaping.