private function Oauth2ClientPluginBase::retrieveCredentials in OAuth2 Client 8.3
Helper function to retrieve and cache credentials.
Return value
array The credentials array.
3 calls to Oauth2ClientPluginBase::retrieveCredentials()
- Oauth2ClientPluginBase::buildConfigurationForm in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Form constructor.
- Oauth2ClientPluginBase::getClientId in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the client_id of the OAuth2 server.
- Oauth2ClientPluginBase::getClientSecret in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the client_secret of the OAuth2 server.
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 416
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
private function retrieveCredentials() {
if (empty($this->credentials)) {
$this->credentials = $this->credentialService
->getCredentials($this);
}
return $this->credentials;
}