8.3.x EntityType.php public EntityType::getPluralLabel()
8.1.x EntityType.php public EntityType::getPluralLabel()
8.2.x EntityType.php public EntityType::getPluralLabel()
8.4.x EntityType.php public EntityType::getPluralLabel()

Gets the plural label of the entity type.

Return value

string The plural label.

Overrides EntityTypeInterface::getPluralLabel

File

core/lib/Drupal/Core/Entity/EntityType.php, line 756

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getPluralLabel() {
  if (empty($this->label_plural)) {
    $lowercase_label = $this->getLowercaseLabel();
    $this->label_plural = new TranslatableMarkup('@label entities', ['@label' => $lowercase_label], [], $this->getStringTranslation());
  }
  return $this->label_plural;
}