You are here

protected function ManageComponentAttributesForm::successfulAjaxSubmit in Layout Builder Component Attributes 1.2.x

Same name and namespace in other branches
  1. 1.0.x src/Form/ManageComponentAttributesForm.php \Drupal\layout_builder_component_attributes\Form\ManageComponentAttributesForm::successfulAjaxSubmit()
  2. 1.1.x src/Form/ManageComponentAttributesForm.php \Drupal\layout_builder_component_attributes\Form\ManageComponentAttributesForm::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

src/Form/ManageComponentAttributesForm.php, line 444

Class

ManageComponentAttributesForm
Provides a form for managing block attributes.

Namespace

Drupal\layout_builder_component_attributes\Form

Code

protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) {
  return $this
    ->rebuildAndClose($this->sectionStorage);
}