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