function apigee_edge_teams_team_listing_page_title in Apigee Edge 8
Gets the title of team listing page.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The title of the page.
1 call to apigee_edge_teams_team_listing_page_title()
- TeamsListMenuLink::getTitle in modules/
apigee_edge_teams/ src/ Plugin/ Menu/ TeamsListMenuLink.php - Returns the localized title to be shown for this link.
1 string reference to 'apigee_edge_teams_team_listing_page_title'
- TeamRouteProvider::getCollectionRoute in modules/
apigee_edge_teams/ src/ Entity/ TeamRouteProvider.php - Gets the collection route.
File
- modules/
apigee_edge_teams/ apigee_edge_teams.module, line 80 - Copyright 2018 Google Inc.
Code
function apigee_edge_teams_team_listing_page_title() : TranslatableMarkup {
$args['@teams'] = \Drupal::entityTypeManager()
->getDefinition('team')
->getCollectionLabel();
$title = t('@teams', $args);
// Modules and themes can alter the title.
\Drupal::moduleHandler()
->alter('apigee_edge_teams_team_listing_page_title', $title);
return $title;
}