You are here

public function Oauth2ClientPluginBase::getStorageKey in OAuth2 Client 8.3

Returns the credential storage key if it is set, otherwise returns NULL.

Return value

mixed|null The data.

Overrides Oauth2ClientPluginInterface::getStorageKey

1 call to Oauth2ClientPluginBase::getStorageKey()
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 516

Class

Oauth2ClientPluginBase
Base class for Oauth2Client plugins.

Namespace

Drupal\oauth2_client\Plugin\Oauth2Client

Code

public function getStorageKey() {
  $configuration = $this
    ->getConfiguration();
  return $configuration['credentials']['storage_key'] ?? NULL;
}