function EntityType::getLabel

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getLabel()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getLabel()
  3. 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getLabel()

Overrides EntityTypeInterface::getLabel

3 calls to EntityType::getLabel()
EntityType::getBundleLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the label for the bundle.
EntityType::getCollectionLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the uppercase plural form of the name of the entity type.
EntityType::getSingularLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the indefinite singular form of the name of the entity type.

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getLabel() {
    return $this->label;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.