public function Oauth2ClientPluginBase::getCredentialProvider in OAuth2 Client 8.3
Returns the plugin credentials if they are set, otherwise returns NULL.
Return value
string|null The data.
Overrides Oauth2ClientPluginInterface::getCredentialProvider
1 call to Oauth2ClientPluginBase::getCredentialProvider()
- Oauth2ClientPluginBase::expandedProviderOptions in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Helper method to build the credential provider elements of the form.
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 508
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
public function getCredentialProvider() {
$configuration = $this
->getConfiguration();
return $configuration['credentials']['credential_provider'] ?? NULL;
}