function commerce_cart_entity_type_build in Commerce Core 8.2
Implements hook_entity_type_build().
File
- modules/
cart/ commerce_cart.module, line 97 - Implements the shopping cart system and add to cart features.
Code
function commerce_cart_entity_type_build(array &$entity_types) {
$entity_types['commerce_order_item']
->setFormClass('add_to_cart', '\\Drupal\\commerce_cart\\Form\\AddToCartForm');
}