You are here

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

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

Namesort descending Modifiers Type Description Overrides
SourceEditingPreventSelfXssConstraint::$message public property When Source Editing is configured to allow self-XSS.