VuFind API Documentation

CspNonce extends AbstractHelper
in package

CSP nonce view helper

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

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.

Tags
deprecated

Use Csp::getNonce() instead

Return values
string

Search results