class StyleSensibleElementConstraint
Same name in other branches
- 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\StyleSensibleElementConstraint
- 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\StyleSensibleElementConstraint
Styles can only be specified for HTML5 tags and extra classes.
@Constraint( id = "StyleSensibleElement", label = @Translation("Styles can only be specified for already supported tags.", context = "Validation"), )
@internal
Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\StyleSensibleElementConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of StyleSensibleElementConstraint
File
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ StyleSensibleElementConstraint.php, line 21
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView source
class StyleSensibleElementConstraint extends Constraint {
/**
* When a style is defined for a non-HTML5 tag.
*
* @var string
*/
public $nonHtml5TagMessage = 'A style can only be specified for an HTML 5 tag. <code>@tag</code> is not an HTML5 tag.';
/**
* When a Style is defined with classes supported by an enabled plugin.
*
* @var string
*/
public $conflictingEnabledPluginMessage = 'A style must only specify classes not supported by other plugins. The <code>@classes</code> classes on <code>@tag</code> are already supported by the enabled %plugin plugin.';
/**
* When a Style is defined with classes supported by a disabled plugin.
*
* @var string
*/
public $conflictingDisabledPluginMessage = 'A style must only specify classes not supported by other plugins. The <code>@classes</code> classes on <code>@tag</code> are supported by the %plugin plugin. Remove this style and enable that plugin instead.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
StyleSensibleElementConstraint::$conflictingDisabledPluginMessage | public | property | When a Style is defined with classes supported by a disabled plugin. |
StyleSensibleElementConstraint::$conflictingEnabledPluginMessage | public | property | When a Style is defined with classes supported by an enabled plugin. |
StyleSensibleElementConstraint::$nonHtml5TagMessage | public | property | When a style is defined for a non-HTML5 tag. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.