W3cubDocs

/Drupal 8

public function EntityType::getPluralLabel

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 755

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityType.php/function/EntityType::getPluralLabel/8.1.x