You are here

public function EdgeEntityType::getPluralLabel in Apigee Edge 8

Gets the indefinite plural form of the name of the entity type.

This should return the human-readable name for more than one instance of the entity type. For example: "opportunities" (with the singular as "opportunity"), "children" (with the singular as "child"), or "content items" (with the singular as "content item").

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The plural label.

Overrides EntityType::getPluralLabel

File

src/Entity/EdgeEntityType.php, line 91

Class

EdgeEntityType
Provides an implementation of an Apigee Edge entity type and its metadata.

Namespace

Drupal\apigee_edge\Entity

Code

public function getPluralLabel() {
  $label = $this
    ->getEntityLabelFromConfig('entity_label_plural');
  return empty($label) ? parent::getPluralLabel() : $label;
}