You are here

public function AddToCartForm::getBaseFormId in Commerce Core 8.2

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 EntityForm::getBaseFormId

1 call to AddToCartForm::getBaseFormId()
AddToCartForm::getFormId in modules/cart/src/Form/AddToCartForm.php
Returns a unique string identifying the form.

File

modules/cart/src/Form/AddToCartForm.php, line 138

Class

AddToCartForm
Provides the order item add to cart form.

Namespace

Drupal\commerce_cart\Form

Code

public function getBaseFormId() {
  return $this->entity
    ->getEntityTypeId() . '_' . $this->operation . '_form';
}