You are here

public function EdgeEntityType::getSingularLabel in Apigee Edge 8

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

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

Think of it as an "in a full sentence, this is what we call this" label. As a consequence, the English version is lowercase.

Return value

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

Overrides EntityType::getSingularLabel

File

src/Entity/EdgeEntityType.php, line 84

Class

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

Namespace

Drupal\apigee_edge\Entity

Code

public function getSingularLabel() {
  return $this
    ->getLabel();
}