class ToolbarItemDependencyConstraint

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

A CKEditor 5 toolbar item.

@internal

Hierarchy

Expanded class hierarchy of ToolbarItemDependencyConstraint

File

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

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint
View source
class ToolbarItemDependencyConstraint extends SymfonyConstraint {
    
    /**
     * The default violation message.
     *
     * @var string
     */
    public $message = 'Depends on %toolbar_item, which is not enabled.';
    
    /**
     * The toolbar item that this validation constraint requires to be enabled.
     *
     * @var null|string
     */
    public $toolbarItem = NULL;
    
    /**
     * {@inheritdoc}
     */
    public function getRequiredOptions() : array {
        return [
            'toolbarItem',
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
ToolbarItemDependencyConstraint::$message public property The default violation message.
ToolbarItemDependencyConstraint::$toolbarItem public property The toolbar item that this validation constraint requires to be enabled.
ToolbarItemDependencyConstraint::getRequiredOptions public function

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