function MenuTreeHierarchyConstraint::coversFields

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

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\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.