public function ServerScopeController::serverDeleteScope in OAuth2 Server 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ ServerScopeController.php, line 90
Class
- ServerScopeController
- Class Server Scope Controller.
Namespace
Drupal\oauth2_server\ControllerCode
public function serverDeleteScope(ServerInterface $oauth2_server, ScopeInterface $oauth2_server_scope) {
return $this
->entityFormBuilder()
->getForm($oauth2_server_scope, 'delete', [
'oauth2_server' => $oauth2_server,
]);
}