Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroupLabel()
- 9 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
See also
File
- core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 825
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',
]);
}