public function AddToCartForm::getBaseFormId in Ubercart 8.4
Returns a string identifying the base form.
Return value
string|null The string identifying the base form or NULL if this is not a base form.
Overrides BuyItNowForm::getBaseFormId
File
- uc_product/
src/ Form/ AddToCartForm.php, line 26
Class
- AddToCartForm
- Defines a complex form for adding a product to the cart.
Namespace
Drupal\uc_product\FormCode
public function getBaseFormId() {
// Base Form ID allows us to theme all add-to-cart-forms using the same
// CSS class and twig template, and allows us to hook_form_BASE_ID_ALTER()
// all add-to-cart-forms, rather than having to target each individual form.
return 'uc_product_add_to_cart_form';
}