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 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;
}
doc_Drupal
2016-10-29 09:08:02
Comments
Leave a Comment

Please login to continue.