function EntityType::getCollectionLabel
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getCollectionLabel()
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getCollectionLabel()
- 11.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getCollectionLabel()
Overrides EntityTypeInterface::getCollectionLabel
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 781
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getCollectionLabel() {
if (empty($this->label_collection)) {
$label = $this->getLabel();
$this->label_collection = new TranslatableMarkup('@label entities', [
'@label' => $label,
], [], $this->getStringTranslation());
}
return $this->label_collection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.