function 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\AjaxCode
abstract protected 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.
