You are here

public function EntityTraitBase::getEntityTypeIds in Commerce Core 8.2

Gets the entity type IDs.

These are the entity types that can have this trait. If empty, defaults to all entity types.

Return value

string[] The entity type IDs.

Overrides EntityTraitInterface::getEntityTypeIds

File

src/Plugin/Commerce/EntityTrait/EntityTraitBase.php, line 22

Class

EntityTraitBase
Provides the base entity trait class.

Namespace

Drupal\commerce\Plugin\Commerce\EntityTrait

Code

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