class SourceEditingPreventSelfXssConstraint

Same name in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\SourceEditingPreventSelfXssConstraint
  2. 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\SourceEditingPreventSelfXssConstraint

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

Expanded class hierarchy of SourceEditingPreventSelfXssConstraint

File

core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraint.php, line 19

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint
View 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

Title Sort descending Modifiers Object type Summary
SourceEditingPreventSelfXssConstraint::$message public property When Source Editing is configured to allow self-XSS.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.