public function EdgeEntityBase::label in Apigee Edge 8
Gets the label of the entity.
Return value
string|null The label of the entity, or NULL if there is no label defined.
Overrides EntityBase::label
1 call to EdgeEntityBase::label()
- App::label in src/
Entity/ App.php - Gets the label of the entity.
2 methods override EdgeEntityBase::label()
- App::label in src/
Entity/ App.php - Gets the label of the entity.
- Developer::label in src/
Entity/ Developer.php - Gets the label of the entity.
File
- src/
Entity/ EdgeEntityBase.php, line 143
Class
- EdgeEntityBase
- Base class for Apigee Edge entities in Drupal.
Namespace
Drupal\apigee_edge\EntityCode
public function label() {
$label = parent::label();
if ($label === NULL) {
if (in_array(DisplayNamePropertyInterface::class, class_implements($this)) && !empty($this
->getDisplayName())) {
$label = $this
->getDisplayName();
}
else {
$label = $this
->id();
}
}
return $label;
}