function EntityTypeInterface::getCollectionLabel
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()
- 10 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 617
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getCollectionLabel();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.