8.3.x EntityType.php public EntityType::getBundleLabel()
8.0.x EntityType.php public EntityType::getBundleLabel()
8.1.x EntityType.php public EntityType::getBundleLabel()
8.2.x EntityType.php public EntityType::getBundleLabel()
8.4.x EntityType.php EntityType::getBundleLabel()

Gets the label for the bundle.

Return value

string|null The bundle label, or NULL if none exists.

Overrides EntityTypeInterface::getBundleLabel

File

core/lib/Drupal/Core/Entity/EntityType.php, line 681

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getBundleLabel() {
  return (string) $this->bundle_label;
}