NonceViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:security.nonce>
FinalYes
This ViewHelper resolves the `nonce` attribute from the global server request object, or from the `PolicyProvider` service as a fall-back value.
Examples
Basic usage
::
<script nonce="{f:security.nonce()}">const inline = 'script';</script>Table of Contents
Methods
- __construct() : mixed
- initializeArguments() : void
- render() : string
Methods
__construct()
public
__construct(RequestId $requestId) : mixed
Parameters
- $requestId : RequestId
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string