abstract public function WebformAjaxFormTrait::cancelAjaxForm in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformAjaxFormTrait.php \Drupal\webform\Form\WebformAjaxFormTrait::cancelAjaxForm()
Cancel form #ajax callback.
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 that display validation error messages or redirects to a URL
1 call to WebformAjaxFormTrait::cancelAjaxForm()
- WebformAjaxFormTrait::submitAjaxForm in src/
Form/ WebformAjaxFormTrait.php - Submit form #ajax callback.
2 methods override WebformAjaxFormTrait::cancelAjaxForm()
- WebformDialogFormTrait::cancelAjaxForm in src/
Form/ WebformDialogFormTrait.php - Cancel form #ajax callback.
- WebformEntityAjaxFormTrait::cancelAjaxForm in src/
Form/ WebformEntityAjaxFormTrait.php - Cancel form #ajax callback.
File
- src/
Form/ WebformAjaxFormTrait.php, line 49
Class
- WebformAjaxFormTrait
- Trait for webform ajax support.
Namespace
Drupal\webform\FormCode
public abstract function cancelAjaxForm(array &$form, FormStateInterface $form_state);