public function ServerClientController::serverEditClient in OAuth2 Server 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ ServerClientController.php, line 75
Class
- ServerClientController
- Class Server Client Controller.
Namespace
Drupal\oauth2_server\ControllerCode
public function serverEditClient(ServerInterface $oauth2_server, ClientInterface $oauth2_server_client) {
return $this
->entityFormBuilder()
->getForm($oauth2_server_client, 'edit', [
'oauth2_server' => $oauth2_server,
]);
}