You are here

public function ServerClientController::serverEditClient in OAuth2 Server 8

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

Returns the form for editing 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 array.

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

File

src/Controller/ServerClientController.php, line 75

Class

ServerClientController
Class Server Client Controller.

Namespace

Drupal\oauth2_server\Controller

Code

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