Same name and namespace in other branches
- 10 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
4 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::getLowercaseLabel in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets the lowercase form of the human-readable entity type name.
- 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 772
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getLabel() {
return $this->label;
}