You are here

public function PromotionOfferBase::getEntityTypeId in Commerce Core 8.2

Gets the offer entity type ID.

This is the entity type ID of the entity passed to apply().

Return value

string The offer's entity type ID.

Overrides PromotionOfferInterface::getEntityTypeId

1 call to PromotionOfferBase::getEntityTypeId()
PromotionOfferBase::assertEntity in modules/promotion/src/Plugin/Commerce/PromotionOffer/PromotionOfferBase.php
Asserts that the given entity is of the expected type.

File

modules/promotion/src/Plugin/Commerce/PromotionOffer/PromotionOfferBase.php, line 108

Class

PromotionOfferBase
Provides the base class for offers.

Namespace

Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer

Code

public function getEntityTypeId() {
  return $this->pluginDefinition['entity_type'];
}