public FormAjaxResponseBuilder::buildResponse(Request $request, array $form, FormStateInterface $form_state, array $commands)
Builds a response for an AJAX form.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
array $commands: An array of AJAX commands to apply to the form.
Return value
\Drupal\Core\Ajax\Aj