public function EdgeEntityType::getLabel in Apigee Edge 8
Gets the human-readable name of the entity type.
This label should be used to present a human-readable name of the entity type.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup The human-readable name of the entity type.
Overrides EntityType::getLabel
1 call to EdgeEntityType::getLabel()
- EdgeEntityType::getSingularLabel in src/
Entity/ EdgeEntityType.php - Gets the indefinite singular form of the name of the entity type.
File
- src/
Entity/ EdgeEntityType.php, line 76
Class
- EdgeEntityType
- Provides an implementation of an Apigee Edge entity type and its metadata.
Namespace
Drupal\apigee_edge\EntityCode
public function getLabel() {
$label = $this
->getEntityLabelFromConfig('entity_label_singular');
return empty($label) ? parent::getSingularLabel() : $label;
}