You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Classes/ViewHelpers/Asset/CssViewHelper.php
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,8 @@ public function initializeArguments(): void
53
53
{
54
54
parent::initializeArguments();
55
55
$this->registerArgument('disabled', 'bool', 'Define whether or not the described stylesheet should be loaded and applied to the document.');
56
-
$this->registerArgument('useNonce', 'bool', 'Whether to use the global nonce value', false, false);
56
+
$this->registerArgument('useNonce', 'bool', 'Whether to use the global nonce value. @deprecated use "csp" instead, will be removed in 3.0.0.', false, null);
57
+
$this->registerArgument('csp', 'bool', 'Whether to collect a CSP hash value for this asset', false, null);
57
58
$this->registerArgument('identifier', 'string', 'Use this identifier within templates to only inject your CSS once, even though it is added multiple times.', true);
58
59
$this->registerArgument('priority', 'boolean', 'Define whether the CSS should be included before other CSS. CSS will always be output in the <head> tag.', false, false);
59
60
$this->registerArgument('inline', 'bool', 'Define whether or not the referenced file should be loaded as inline styles (Only to be used if \'href\' is set).', false, false);
@@ -73,9 +74,15 @@ public function render(): string
0 commit comments