You are here

public function XquantityOrderItem::getFormDisplayWidget in Commerce Extended Quantity 8

1 call to XquantityOrderItem::getFormDisplayWidget()
XquantityOrderItem::getQuantityWidgetSettings in src/Entity/XquantityOrderItem.php

File

src/Entity/XquantityOrderItem.php, line 259

Class

XquantityOrderItem
Overrides the order item entity class.

Namespace

Drupal\commerce_xquantity\Entity

Code

public function getFormDisplayWidget($mode = 'add_to_cart') {
  return $this
    ->entityTypeManager()
    ->getStorage('entity_form_display')
    ->load("commerce_order_item.{$this->bundle()}.{$mode}");
}