You are here

public function ServerClientController::serverClientsTitle in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/ServerClientController.php \Drupal\oauth2_server\Controller\ServerClientController::serverClientsTitle()

Returns the page title for an server's "Clients" tab.

Parameters

\Drupal\oauth2_server\ServerInterface $oauth2_server: The server that is displayed.

Return value

string The page title.

1 string reference to 'ServerClientController::serverClientsTitle'
oauth2_server.routing.yml in ./oauth2_server.routing.yml
oauth2_server.routing.yml

File

src/Controller/ServerClientController.php, line 40

Class

ServerClientController
Class Server Client Controller.

Namespace

Drupal\oauth2_server\Controller

Code

public function serverClientsTitle(ServerInterface $oauth2_server) {
  return $this
    ->t('OAuth2 Server: %name clients', [
    '%name' => $oauth2_server
      ->label(),
  ]);
}