public function ServerScopeController::serverScopes in OAuth2 Server 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ ServerScopeController.php, line 25
Class
- ServerScopeController
- Class Server Scope Controller.
Namespace
Drupal\oauth2_server\ControllerCode
public function serverScopes(ServerInterface $oauth2_server) {
return $this
->entityTypeManager()
->getListBuilder('oauth2_server_scope')
->render($oauth2_server);
}