function CKEditor5ElementConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ CKEditor5ElementConstraint.php, line 28
Class
- CKEditor5ElementConstraint
- CKEditor 5 element.
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, ?array $requiredAttributes = NULL, public $message = 'The following tag is not valid HTML: %provided_element.', public $missingRequiredAttributeMessage = 'The following tag is missing the required attribute <code>@required_attribute_name</code>: <code>@provided_element</code>.', public $requiredAttributeMinValuesMessage = 'The following tag does not have the minimum of @min_attribute_value_count allowed values for the required attribute <code>@required_attribute_name</code>: <code>@provided_element</code>.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
$this->requiredAttributes = $requiredAttributes ?? $this->requiredAttributes;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.