Plugins
in package
View plugins
Table of Contents
Methods
- cspScriptNonce() : string
- Wrap csp_script_nonce() function to use as view plugin.
- cspStyleNonce() : string
- Wrap csp_style_nonce() function to use as view plugin.
- currentURL() : string|URI
- Wrap helper function to use as view plugin.
- lang() : string
- Wrap helper function to use as view plugin.
- mailto() : string
- Wrap helper function to use as view plugin.
- previousURL() : string|URI
- Wrap helper function to use as view plugin.
- route() : false|string
- Wrap helper function to use as view plugin.
- safeMailto() : string
- Wrap helper function to use as view plugin.
- siteURL() : string
- Wrap helper function to use as view plugin.
- validationErrors() : string
- Wrap helper function to use as view plugin.
Methods
cspScriptNonce()
Wrap csp_script_nonce() function to use as view plugin.
public
static cspScriptNonce() : string
Return values
stringcspStyleNonce()
Wrap csp_style_nonce() function to use as view plugin.
public
static cspStyleNonce() : string
Return values
stringcurrentURL()
Wrap helper function to use as view plugin.
public
static currentURL() : string|URI
Return values
string|URIlang()
Wrap helper function to use as view plugin.
public
static lang([array<int|string, string>|array<int, string> $params = [] ]) : string
Parameters
- $params : array<int|string, string>|array<int, string> = []
Return values
stringmailto()
Wrap helper function to use as view plugin.
public
static mailto([array{email?: string, title?: string, attributes?: array|object|string} $params = [] ]) : string
Parameters
-
$params
: array{email?: string, title?: string, attributes?: array
|object|string} = []
Return values
stringpreviousURL()
Wrap helper function to use as view plugin.
public
static previousURL() : string|URI
Return values
string|URIroute()
Wrap helper function to use as view plugin.
public
static route([array<int, string> $params = [] ]) : false|string
Parameters
- $params : array<int, string> = []
Return values
false|stringsafeMailto()
Wrap helper function to use as view plugin.
public
static safeMailto([array{email?: string, title?: string, attributes?: array|object|string} $params = [] ]) : string
Parameters
-
$params
: array{email?: string, title?: string, attributes?: array
|object|string} = []
Return values
stringsiteURL()
Wrap helper function to use as view plugin.
public
static siteURL([array<int, string> $params = [] ]) : string
Parameters
- $params : array<int, string> = []
Return values
stringvalidationErrors()
Wrap helper function to use as view plugin.
public
static validationErrors([array{field?: string} $params = [] ]) : string
Parameters
- $params : array{field?: string} = []