You are here

function oauth2_client_load in OAuth2 Client 8

Same name in this branch
  1. 8 oauth2_client.module \oauth2_client_load()
  2. 8 oauth2_client.api.php \oauth2_client_load()
Same name and namespace in other branches
  1. 7.2 oauth2_client.module \oauth2_client_load()
  2. 7.2 oauth2_client.api.php \oauth2_client_load()
  3. 7 oauth2_client.module \oauth2_client_load()

Load an oauth2 client.

Example: ``` $test1 = oauth2_client_load('test1'); $access_token = $test1->getAccessToken(); ```

Parameters

string $name: Name of the client.

Return value

\Drupal\oauth2_client\Service\OAuth2Client Returns an OAuth2Client object

1 call to oauth2_client_load()
TestController::callback in tests/oauth2_client_test/src/Controller/TestController.php
Trying test clients.

File

./oauth2_client.api.php, line 66
Documentation of API functions provided by the oauth2_client module.

Code

function oauth2_client_load($name) {
}