Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()
  2. 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()

Gets the uppercase plural form of the name of the entity type.

This should return a human-readable version of the name that can refer to all the entities of the given type, collectively. An example usage of this is the page title of a page devoted to a collection of entities such as "Workflows" (instead of "Workflow entities").

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The collection label.

1 method overrides EntityTypeInterface::getCollectionLabel()
EntityType::getCollectionLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the uppercase plural form of the name of the entity type.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 609

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getCollectionLabel();