Hint for setting "HTML tracking code" (#6580)

This commit is contained in:
Yuriy Bakhtin 2023-09-20 18:26:38 +02:00 committed by GitHub
parent 226d9e624a
commit 137b8fb6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,18 @@ class StatisticSettingsForm extends \yii\base\Model
];
}
/**
* @inheritdoc
*/
public function attributeHints()
{
return [
'trackingHtmlCode' => Yii::t('AdminModule.settings', 'Inserted script tags must contain a nonce. e.g. {code}', [
'code' => '<code>&lt;script nonce={{nonce}}&gt;</code>'
]),
];
}
/**
* Saves the form
*