class SourceEditingPreventSelfXssConstraint in Drupal 10
For disallowing Source Editing configuration that allows self-XSS.
@Constraint( id = "SourceEditingPreventSelfXssConstraint", label = @Translation("Source Editing should never allow self-XSS.", context = "Validation"), )
@internal
Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\SourceEditingPreventSelfXssConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of SourceEditingPreventSelfXssConstraint
File
- core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ SourceEditingPreventSelfXssConstraint.php, line 19
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView source
class SourceEditingPreventSelfXssConstraint extends Constraint {
/**
* 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.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SourceEditingPreventSelfXssConstraint:: |
public | property | When Source Editing is configured to allow self-XSS. |