You are here

public function App::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 EdgeEntityBase::label

File

src/Entity/App.php, line 437

Class

App
Base class for App Drupal entities.

Namespace

Drupal\apigee_edge\Entity

Code

public function label() {
  $label = parent::label();

  // Return app name instead of app id if display name is missing.
  if ($label === $this
    ->id()) {
    $label = $this
      ->getName();
  }
  return $label;
}