You are here

public function LinkedInAuthSettings::getClientSecret in Social Auth LinkedIn 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings::getClientSecret()
  2. 8 src/Settings/LinkedinAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedinAuthSettings::getClientSecret()

Gets the client secret.

Return value

string The client secret.

Overrides LinkedInAuthSettingsInterface::getClientSecret

File

src/Settings/LinkedInAuthSettings.php, line 39

Class

LinkedInAuthSettings
Defines methods to get Social Auth LinkedIn settings.

Namespace

Drupal\social_auth_linkedin\Settings

Code

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