Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroupLabel()
  2. 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

self::getGroup()

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\Entity

Code

public function getGroupLabel() {
  return !empty($this->group_label) ? $this->group_label : $this
    ->t('Other', [], [
    'context' => 'Entity type group',
  ]);
}