class ToolbarItemConditionsMetConstraint

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

A (placed) CKEditor 5 toolbar item's conditions must be met.

@internal

Hierarchy

Expanded class hierarchy of ToolbarItemConditionsMetConstraint

File

core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraint.php, line 16

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint
View source
class ToolbarItemConditionsMetConstraint extends SymfonyConstraint {
    
    /**
     * 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

Title Sort descending Modifiers Object type Summary
ToolbarItemConditionsMetConstraint::$filterRequiredMessage public property The violation message when a required filter is missing.
ToolbarItemConditionsMetConstraint::$imageUploadStatusRequiredMessage public property The violation message when the required image upload status is not set.
ToolbarItemConditionsMetConstraint::$multipleMissingRequiredPluginMessage public property The violation message when >1 required plugin is missing.
ToolbarItemConditionsMetConstraint::$singleMissingRequiredPluginMessage public property The violation message when 1 required plugin is missing.

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