Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getLabel()
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getLabel()
Gets the human-readable name of the entity type.
This label should be used to present a human-readable name of the entity type.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup The human-readable name of the entity type.
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 749
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getLabel() {
return $this->label;
}