You are here

public function PriceListItemType::getPurchasableEntityTypeId in Commerce Pricelist 8

Gets the price list item type's purchasable entity type ID.

E.g, if price list 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 PriceListItemTypeInterface::getPurchasableEntityTypeId

File

src/Entity/PriceListItemType.php, line 74

Class

PriceListItemType
Defines the price list item type entity class.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getPurchasableEntityTypeId() {
  return $this->purchasableEntityType;
}