protected function MoveBlockForm::successfulAjaxSubmit in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/MoveBlockForm.php \Drupal\layout_builder\Form\MoveBlockForm::successfulAjaxSubmit()
- 10 core/modules/layout_builder/src/Form/MoveBlockForm.php \Drupal\layout_builder\Form\MoveBlockForm::successfulAjaxSubmit()
Allows the form to respond to a successful AJAX submission.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
\Drupal\Core\Ajax\AjaxResponse An AJAX response.
Overrides AjaxFormHelperTrait::successfulAjaxSubmit
File
- core/
modules/ layout_builder/ src/ Form/ MoveBlockForm.php, line 282
Class
- MoveBlockForm
- Provides a form for moving a block.
Namespace
Drupal\layout_builder\FormCode
protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) {
return $this
->rebuildAndClose($this->sectionStorage);
}