function dc_ajax_add_cart_entity_type_build in Commerce Ajax Add to Cart 8
Implements hook_entity_type_build().
File
- ./
dc_ajax_add_cart.module, line 40 - Ajax add to cart module.
Code
function dc_ajax_add_cart_entity_type_build(array &$entity_types) {
$entity_types['commerce_order_item']
->setFormClass('dc_ajax_add_cart', '\\Drupal\\dc_ajax_add_cart\\Form\\AjaxAddToCartForm');
}