protected function EditSimpleBlockInLayoutBuilderForm::successfulAjaxSubmit in Simple Block 8
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
- modules/
simple_block_layout_builder/ src/ Form/ EditSimpleBlockInLayoutBuilderForm.php, line 173
Class
- EditSimpleBlockInLayoutBuilderForm
- Provides a form to add/edit a simple block in Layout Builder.
Namespace
Drupal\simple_block_layout_builder\FormCode
protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) : AjaxResponse {
return $this
->rebuildAndClose($this->sectionStorage);
}