function EntityType::getGroupLabel
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroupLabel()
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroupLabel()
- 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroupLabel()
Gets the human-readable name of the entity type group.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup The group label.
Overrides EntityTypeInterface::getGroupLabel
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 851
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getGroupLabel() {
return !empty($this->group_label) ? $this->group_label : $this->t('Other', [], [
'context' => 'Entity type group',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.