interface FormAjaxResponseBuilderInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Form/FormAjaxResponseBuilderInterface.php \Drupal\Core\Form\FormAjaxResponseBuilderInterface
Provides an interface for building AJAX form responses.
Hierarchy
- interface \Drupal\Core\Form\FormAjaxResponseBuilderInterface
Expanded class hierarchy of FormAjaxResponseBuilderInterface
All classes that implement FormAjaxResponseBuilderInterface
1 file declares its use of FormAjaxResponseBuilderInterface
- FormAjaxSubscriber.php in core/
lib/ Drupal/ Core/ Form/ EventSubscriber/ FormAjaxSubscriber.php - Contains \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber.
File
- core/
lib/ Drupal/ Core/ Form/ FormAjaxResponseBuilderInterface.php, line 15 - Contains \Drupal\Core\Form\FormAjaxResponseBuilderInterface.
Namespace
Drupal\Core\FormView source
interface FormAjaxResponseBuilderInterface {
/**
* Builds a response for an AJAX form.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The current request.
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param array $commands
* An array of AJAX commands to apply to the form.
*
* @return \Drupal\Core\Ajax\AjaxResponse
* An AJAX response representing the form and its AJAX commands.
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* Thrown if the AJAX callback is not a callable.
*/
public function buildResponse(Request $request, array $form, FormStateInterface $form_state, array $commands);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormAjaxResponseBuilderInterface:: |
public | function | Builds a response for an AJAX form. | 1 |