SourceEditingPreventSelfXssConstraint.php
Same filename in other branches
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintFile
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ SourceEditingPreventSelfXssConstraint.php
View source
<?php
declare (strict_types=1);
namespace Drupal\ckeditor5\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* For disallowing Source Editing configuration that allows self-XSS.
*
* @internal
*/
class SourceEditingPreventSelfXssConstraint extends SymfonyConstraint {
/**
* When Source Editing is configured to allow self-XSS.
*
* @var string
*/
public $message = 'The following tag in the Source Editing "Manually editable HTML tags" field is a security risk: %dangerous_tag.';
}
Classes
Title | Deprecated | Summary |
---|---|---|
SourceEditingPreventSelfXssConstraint | For disallowing Source Editing configuration that allows self-XSS. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.