You are here

public function TwitterAuthSettings::getConsumerKey in Open Social 8

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::getConsumerKey()
  2. 8.2 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  3. 8.3 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  4. 8.4 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  5. 8.5 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  6. 8.6 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  7. 8.7 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()
  8. 8.8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings::getConsumerKey()

Gets the consumer key.

Return value

string The consumer key.

Overrides TwitterAuthSettingsInterface::getConsumerKey

File

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

Class

TwitterAuthSettings
Returns the client information.

Namespace

Drupal\social_auth_twitter\Settings

Code

public function getConsumerKey() {
  if (!$this->consumerKey) {
    $this->consumerKey = $this->config
      ->get('consumer_key');
  }
  return $this->consumerKey;
}