You are here

public function ServerScopeController::serverScopes in OAuth2 Server 8

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

Return a list of scopes for a OAuth2 server.

Parameters

\Drupal\oauth2_server\ServerInterface $oauth2_server: The server to display the scopes of.

Return value

array The renderable array.

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

File

src/Controller/ServerScopeController.php, line 25

Class

ServerScopeController
Class Server Scope Controller.

Namespace

Drupal\oauth2_server\Controller

Code

public function serverScopes(ServerInterface $oauth2_server) {
  return $this
    ->entityTypeManager()
    ->getListBuilder('oauth2_server_scope')
    ->render($oauth2_server);
}