You are here

public function TwitterAuthSettings::getConsumerSecret in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  2. 8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  3. 8.2 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  4. 8.3 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  5. 8.5 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  6. 8.6 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  7. 8.7 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()
  8. 8.8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerSecret()

Gets the consumer secret.

Return value

string The consumer secret.

Overrides TwitterAuthSettingsInterface::getConsumerSecret

File

modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php, line 40

Class

TwitterAuthSettings
Returns the client information.

Namespace

Drupal\social_auth_twitter\Settings

Code

public function getConsumerSecret() {
  if (!$this->consumerSecret) {
    $this->consumerSecret = $this->config
      ->get('consumer_secret');
  }
  return $this->consumerSecret;
}