You are here

public function OrderItemType::setOrderTypeId in Commerce Core 8.2

Sets the order item type's order type ID.

Parameters

string $order_type_id: The order type ID.

Return value

$this

Overrides OrderItemTypeInterface::setOrderTypeId

File

modules/order/src/Entity/OrderItemType.php, line 102

Class

OrderItemType
Defines the order item type entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setOrderTypeId($order_type_id) {
  $this->orderType = $order_type_id;
  return $this;
}