You are here

public function TaxonomyTermHierarchyConstraint::coversFields in Drupal 9

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

An array of entity fields which should be passed to the validator.

Return value

string[] An array of field names.

Overrides CompositeConstraintBase::coversFields

File

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

Class

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

Namespace

Drupal\taxonomy\Plugin\Validation\Constraint

Code

public function coversFields() {
  return [
    'parent',
    'weight',
  ];
}