function AjaxFormHelperTrait::successfulAjaxSubmit

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php \Drupal\Core\Ajax\AjaxFormHelperTrait::successfulAjaxSubmit()
  2. 8.9.x core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php \Drupal\Core\Ajax\AjaxFormHelperTrait::successfulAjaxSubmit()
  3. 10 core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php \Drupal\Core\Ajax\AjaxFormHelperTrait::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.

1 call to AjaxFormHelperTrait::successfulAjaxSubmit()
AjaxFormHelperTrait::ajaxSubmit in core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php
Submit form dialog #ajax callback.
5 methods override AjaxFormHelperTrait::successfulAjaxSubmit()
BlockEntitySettingTrayForm::successfulAjaxSubmit in core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php
Allows the form to respond to a successful AJAX submission.
ConfigureBlockFormBase::successfulAjaxSubmit in core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
Allows the form to respond to a successful AJAX submission.
ConfigureSectionForm::successfulAjaxSubmit in core/modules/layout_builder/src/Form/ConfigureSectionForm.php
Allows the form to respond to a successful AJAX submission.
LayoutRebuildConfirmFormBase::successfulAjaxSubmit in core/modules/layout_builder/src/Form/LayoutRebuildConfirmFormBase.php
Allows the form to respond to a successful AJAX submission.
MoveBlockForm::successfulAjaxSubmit in core/modules/layout_builder/src/Form/MoveBlockForm.php
Allows the form to respond to a successful AJAX submission.

File

core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php, line 55

Class

AjaxFormHelperTrait
Provides a helper to for submitting an AJAX form.

Namespace

Drupal\Core\Ajax

Code

protected abstract function successfulAjaxSubmit(array $form, FormStateInterface $form_state);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.