You are here

public function GoogleAuthSettings::getClientSecret in Social Auth Google 8.2

Same name and namespace in other branches
  1. 8 src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::getClientSecret()
  2. 3.x src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::getClientSecret()

Gets the client secret.

Return value

string The client secret.

Overrides GoogleAuthSettingsInterface::getClientSecret

File

src/Settings/GoogleAuthSettings.php, line 46

Class

GoogleAuthSettings
Defines methods to get Social Auth Google settings.

Namespace

Drupal\social_auth_google\Settings

Code

public function getClientSecret() {
  if (!$this->clientSecret) {
    $this->clientSecret = $this->config
      ->get('client_secret');
  }
  return $this->clientSecret;
}