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'
File
- src/
Entity/ ListBuilder/ DeveloperAppListBuilderForDeveloper.php, line 204
Class
- DeveloperAppListBuilderForDeveloper
- Lists developer apps of a developer on the UI.
Namespace
Drupal\apigee_edge\Entity\ListBuilderCode
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;
}