You are here

public function HierarchyChildrenForm::updateField in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/HierarchyChildrenForm.php \Drupal\entity_hierarchy\Form\HierarchyChildrenForm::updateField()

Submit handler for update field button.

Parameters

array $form: Form array.

\Drupal\Core\Form\FormStateInterface $formState: Form state.

File

src/Form/HierarchyChildrenForm.php, line 204

Class

HierarchyChildrenForm
Defines a form for re-ordering children.

Namespace

Drupal\entity_hierarchy\Form

Code

public function updateField(array $form, FormStateInterface $formState) {
  $formState
    ->setRebuild(TRUE);
}