function EntityTypeInterface::getLabel
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getLabel()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getLabel()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::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.
1 method overrides EntityTypeInterface::getLabel()
- EntityType::getLabel in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets the human-readable name of the entity type.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 603
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getLabel();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.