function TaxonomyTermHierarchyConstraint::__construct

Same name and namespace in other branches
  1. main core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraint::__construct()

Attributes

#[HasNamedArguments]

File

core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php, line 19

Class

TaxonomyTermHierarchyConstraint
Validation constraint for changing the term hierarchy in pending revisions.

Namespace

Drupal\taxonomy\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public string $message = 'You can only change the hierarchy for the <em>published</em> version of this term.', ?array $groups = NULL, mixed $payload = NULL) {
  parent::__construct($options, $groups, $payload);
}

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