You are here

public function FacebookAuthSettings::getAppSecret in Social Auth Facebook 8

Same name and namespace in other branches
  1. 8.2 src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings::getAppSecret()
  2. 3.x src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings::getAppSecret()

Gets the application secret.

Return value

string The application secret.

Overrides FacebookAuthSettingsInterface::getAppSecret

File

src/Settings/FacebookAuthSettings.php, line 53

Class

FacebookAuthSettings
Defines methods to get Social Auth Facebook app settings.

Namespace

Drupal\social_auth_facebook\Settings

Code

public function getAppSecret() {
  if (!$this->appSecret) {
    $this->appSecret = $this->config
      ->get('app_secret');
  }
  return $this->appSecret;
}