public function MenuTreeHierarchyConstraint::coversFields in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraint.php \Drupal\menu_link_content\Plugin\Validation\Constraint\MenuTreeHierarchyConstraint::coversFields()
- 10 core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraint.php \Drupal\menu_link_content\Plugin\Validation\Constraint\MenuTreeHierarchyConstraint::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/ menu_link_content/ src/ Plugin/ Validation/ Constraint/ MenuTreeHierarchyConstraint.php, line 27
Class
- MenuTreeHierarchyConstraint
- Validation constraint for changing the menu hierarchy in pending revisions.
Namespace
Drupal\menu_link_content\Plugin\Validation\ConstraintCode
public function coversFields() {
return [
'parent',
'weight',
];
}