You are here

public function ServerClientController::serverDeleteClient in OAuth2 Server 8

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

Returns the form for deleting a client to a server.

Parameters

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

\Drupal\oauth2_server\ClientInterface $oauth2_server_client: The client entity.

Return value

array The renderable form.

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

File

src/Controller/ServerClientController.php, line 91

Class

ServerClientController
Class Server Client Controller.

Namespace

Drupal\oauth2_server\Controller

Code

public function serverDeleteClient(ServerInterface $oauth2_server, ClientInterface $oauth2_server_client) {
  return $this
    ->entityFormBuilder()
    ->getForm($oauth2_server_client, 'delete', [
    'oauth2_server' => $oauth2_server,
  ]);
}