public function AddToCartForm::setFormId in Commerce Core 8.2
Sets the form ID.
Parameters
string $form_id: The form ID.
Return value
$this
Overrides AddToCartFormInterface::setFormId
File
- modules/
cart/ src/ Form/ AddToCartForm.php, line 161
Class
- AddToCartForm
- Provides the order item add to cart form.
Namespace
Drupal\commerce_cart\FormCode
public function setFormId($form_id) {
$this->formId = $form_id;
return $this;
}