You are here

public function SubscriptionTypeInterface::getPurchasableEntityTypeId in Commerce Recurring Framework 8

Gets the subscription type's purchasable entity type ID.

E.g, if subscriptions of this type are used for subscribing to product variations, the ID will be 'commerce_product_variation'.

Return value

string The purchasable entity type ID, or NULL if the subscription isn't backed by a purchasable entity.

1 method overrides SubscriptionTypeInterface::getPurchasableEntityTypeId()
SubscriptionTypeBase::getPurchasableEntityTypeId in src/Plugin/Commerce/SubscriptionType/SubscriptionTypeBase.php
Gets the subscription type's purchasable entity type ID.

File

src/Plugin/Commerce/SubscriptionType/SubscriptionTypeInterface.php, line 38

Class

SubscriptionTypeInterface
Defines the interface for subscription types.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\SubscriptionType

Code

public function getPurchasableEntityTypeId();