AjaxFormHelperTrait
trait AjaxFormHelperTrait (View source)
| internal |
Provides a helper to for submitting an AJAX form.
Traits
Provides a helper to determine if the current request is via AJAX.
Methods
string|null
getRequestWrapperFormat()
Gets the wrapper format of the current request.
from
AjaxHelperTrait
successfulAjaxSubmit(array $form, FormStateInterface $form_state)
Allows the form to respond to a successful AJAX submission.
Details
protected bool
isAjax()
Determines if the current request is via AJAX.
protected string|null
getRequestWrapperFormat()
Gets the wrapper format of the current request.
AjaxResponse
ajaxSubmit(array $form, FormStateInterface $form_state)
Submit form dialog #ajax callback.
abstract protected AjaxResponse
successfulAjaxSubmit(array $form, FormStateInterface $form_state)
Allows the form to respond to a successful AJAX submission.