You are here

public function ServerScopeController::serverScopesTitle in OAuth2 Server 8

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

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

Parameters

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

Return value

string The page title.

1 string reference to 'ServerScopeController::serverScopesTitle'
oauth2_server.routing.yml in ./oauth2_server.routing.yml
oauth2_server.routing.yml

File

src/Controller/ServerScopeController.php, line 39

Class

ServerScopeController
Class Server Scope Controller.

Namespace

Drupal\oauth2_server\Controller

Code

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