public function XquantityOrderItem::getFormDisplayWidget in Commerce Extended Quantity 8
1 call to XquantityOrderItem::getFormDisplayWidget()
File
- src/
Entity/ XquantityOrderItem.php, line 259
Class
- XquantityOrderItem
- Overrides the order item entity class.
Namespace
Drupal\commerce_xquantity\EntityCode
public function getFormDisplayWidget($mode = 'add_to_cart') {
return $this
->entityTypeManager()
->getStorage('entity_form_display')
->load("commerce_order_item.{$this->bundle()}.{$mode}");
}