public function OrderItemType::getPurchasableEntityTypeId in Commerce Core 8.2
Gets the order item type's purchasable entity type ID.
E.g, if order items of this type are used to purchase product variations, the purchasable entity type ID will be 'commerce_product_variation'.
Return value
string The purchasable entity type ID.
Overrides OrderItemTypeInterface::getPurchasableEntityTypeId
File
- modules/
order/ src/ Entity/ OrderItemType.php, line 80
Class
- OrderItemType
- Defines the order item type entity class.
Namespace
Drupal\commerce_order\EntityCode
public function getPurchasableEntityTypeId() {
return $this->purchasableEntityType;
}