You are here

public function DeveloperAppListBuilderForDeveloper::pageTitle in Apigee Edge 8

Returns the title of the "developer app list by user" page.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The title of the page.

1 string reference to 'DeveloperAppListBuilderForDeveloper::pageTitle'
apigee_edge.routing.yml in ./apigee_edge.routing.yml
apigee_edge.routing.yml

File

src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php, line 204

Class

DeveloperAppListBuilderForDeveloper
Lists developer apps of a developer on the UI.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

public function pageTitle() : TranslatableMarkup {

  /** @var \Drupal\user\UserInterface $account */
  $account = $this->routeMatch
    ->getParameter('user');
  if ($account && $account
    ->id() != $this->currentUser
    ->id()) {
    $args['@user'] = Markup::create($account
      ->label());
    $title = $this
      ->t('Apps of @user', $args);
  }
  else {
    $title = apigee_edge_app_listing_page_title();
  }
  return $title;
}