You are here

public function ConditionBase::getEntityTypeId in Commerce Core 8.2

Gets the condition entity type ID.

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

Return value

string The condition's entity type ID.

Overrides ConditionInterface::getEntityTypeId

2 calls to ConditionBase::getEntityTypeId()
ConditionBase::assertEntity in src/Plugin/Commerce/Condition/ConditionBase.php
Asserts that the given entity is of the expected type.
EntityBundleBase::buildConfigurationForm in src/Plugin/Commerce/Condition/EntityBundleBase.php
Form constructor.

File

src/Plugin/Commerce/Condition/ConditionBase.php, line 89

Class

ConditionBase
Provides the base class for conditions.

Namespace

Drupal\commerce\Plugin\Commerce\Condition

Code

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