You are here

public function ServerScopeController::serverDeleteScope in OAuth2 Server 8

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

Returns the form for deleting a scope to a server.

Parameters

\Drupal\oauth2_server\ServerInterface $oauth2_server: The server the scope should belong to.

\Drupal\oauth2_server\ScopeInterface $oauth2_server_scope: The scope entity.

Return value

array The renderable form.

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

File

src/Controller/ServerScopeController.php, line 90

Class

ServerScopeController
Class Server Scope Controller.

Namespace

Drupal\oauth2_server\Controller

Code

public function serverDeleteScope(ServerInterface $oauth2_server, ScopeInterface $oauth2_server_scope) {
  return $this
    ->entityFormBuilder()
    ->getForm($oauth2_server_scope, 'delete', [
    'oauth2_server' => $oauth2_server,
  ]);
}