You are here

public function EntityTraitBase::getLabel in Commerce Core 8.2

Gets the entity trait label.

Return value

string The entity trait label.

Overrides EntityTraitInterface::getLabel

File

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

Class

EntityTraitBase
Provides the base entity trait class.

Namespace

Drupal\commerce\Plugin\Commerce\EntityTrait

Code

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