function FieldConfigEditForm::successfulAjaxSubmit
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 FieldConfigEditForm::successfulAjaxSubmit()
- FieldConfigEditForm::ajaxSubmit in core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php - Submit form #ajax callback.
File
-
core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php, line 395
Class
- FieldConfigEditForm
- Provides a form for the field settings form.
Namespace
Drupal\field_ui\FormCode
protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) : AjaxResponse {
$response = new AjaxResponse();
$response->addCommand(new RedirectCommand(FieldUI::getOverviewRouteInfo($this->entity
->getTargetEntityTypeId(), $this->entity
->getTargetBundle())
->toString()));
return $response;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.