public function TaxonomyTermHierarchyConstraint::coversFields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraint::coversFields()
- 9 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\ConstraintCode
public function coversFields() {
return [
'parent',
'weight',
];
}