class ToolbarItemConditionsMetConstraint in Drupal 10
A (placed) CKEditor 5 toolbar item's conditions must be met.
@Constraint( id = "CKEditor5ToolbarItemConditionsMet", label = @Translation("CKEditor 5 toolbar item conditions must be met", context = "Validation"), )
@internal
Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConditionsMetConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ToolbarItemConditionsMetConstraint
File
- core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ ToolbarItemConditionsMetConstraint.php, line 19
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView source
class ToolbarItemConditionsMetConstraint extends Constraint {
/**
* The violation message when the required image upload status is not set.
*
* @var string
*/
public $imageUploadStatusRequiredMessage = 'The %toolbar_item toolbar item requires image uploads to be enabled.';
/**
* The violation message when a required filter is missing.
*
* @var string
*/
public $filterRequiredMessage = 'The %toolbar_item toolbar item requires the %filter filter to be enabled.';
/**
* The violation message when 1 required plugin is missing.
*
* @var string
*/
public $singleMissingRequiredPluginMessage = 'The %toolbar_item toolbar item requires the %plugin plugin to be enabled.';
/**
* The violation message when >1 required plugin is missing.
*
* @var string
*/
public $multipleMissingRequiredPluginMessage = 'The %toolbar_item toolbar item requires the %plugins plugins to be enabled.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ToolbarItemConditionsMetConstraint:: |
public | property | The violation message when a required filter is missing. | |
ToolbarItemConditionsMetConstraint:: |
public | property | The violation message when the required image upload status is not set. | |
ToolbarItemConditionsMetConstraint:: |
public | property | The violation message when >1 required plugin is missing. | |
ToolbarItemConditionsMetConstraint:: |
public | property | The violation message when 1 required plugin is missing. |