public function AjaxAddToCartForm::refreshAddToCartForm in Commerce Ajax Add to Cart 8
Refreshes the add to cart form.
Fixes https://www.drupal.org/node/2905814
Return value
\Drupal\Core\Ajax\AjaxResponse The updated ajax response.
File
- src/
Form/ AjaxAddToCartForm.php, line 125
Class
- AjaxAddToCartForm
- Provides the order item ajax add to cart form.
Namespace
Drupal\dc_ajax_add_cart\FormCode
public function refreshAddToCartForm(array $form, FormStateInterface $form_state) {
return $this->refreshPageElementsHelper
->updatePageElements($form)
->getResponse();
}