class ToolbarItemDependencyConstraint
A CKEditor 5 toolbar item.
@internal
Attributes
#[Constraint(id: 'CKEditor5ToolbarItemDependencyConstraint', label: new TranslatableMarkup('CKEditor 5 toolbar item dependency', [], [
'context' => 'Validation',
]))]
  Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemDependencyConstraint extends \Symfony\Component\Validator\Constraint
 
Expanded class hierarchy of ToolbarItemDependencyConstraint
File
- 
              core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ ToolbarItemDependencyConstraint.php, line 16  
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView 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() {
    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.