You are here

public function ServerScopeController::serverEditScope in OAuth2 Server 8

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

Returns the form for editing 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::serverEditScope'
oauth2_server.routing.yml in ./oauth2_server.routing.yml
oauth2_server.routing.yml

File

src/Controller/ServerScopeController.php, line 74

Class

ServerScopeController
Class Server Scope Controller.

Namespace

Drupal\oauth2_server\Controller

Code

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