function TaxonomyTermHierarchyConstraint::coversFields

Same name in other branches
  1. 8.9.x core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraint::coversFields()
  2. 10 core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraint::coversFields()
  3. 11.x core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraint::coversFields()

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',
    ];
}

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