class TwitterAuthSettings in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.2 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.3 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.4 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.5 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.6 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
- 8.8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php \Drupal\social_auth_twitter\Settings\TwitterAuthSettings
Returns the client information.
Hierarchy
- class \Drupal\social_auth_twitter\Settings\TwitterAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements TwitterAuthSettingsInterface
Expanded class hierarchy of TwitterAuthSettings
3 files declare their use of TwitterAuthSettings
- TwitterAuth.php in modules/
custom/ social_auth_twitter/ src/ Plugin/ Network/ TwitterAuth.php - TwitterAuthManager.php in modules/
custom/ social_auth_twitter/ src/ TwitterAuthManager.php - TwitterUserManager.php in modules/
custom/ social_auth_twitter/ src/ TwitterUserManager.php
File
- modules/
custom/ social_auth_twitter/ src/ Settings/ TwitterAuthSettings.php, line 10
Namespace
Drupal\social_auth_twitter\SettingsView source
class TwitterAuthSettings extends SettingsBase implements TwitterAuthSettingsInterface {
/**
* Consumer Key.
*
* @var string
*/
protected $consumerKey;
/**
* Consumer secret.
*
* @var string
*/
protected $consumerSecret;
/**
* {@inheritdoc}
*/
public function getConsumerKey() {
if (!$this->consumerKey) {
$this->consumerKey = $this->config
->get('consumer_key');
}
return $this->consumerKey;
}
/**
* {@inheritdoc}
*/
public function getConsumerSecret() {
if (!$this->consumerSecret) {
$this->consumerSecret = $this->config
->get('consumer_secret');
}
return $this->consumerSecret;
}
/**
* {@inheritdoc}
*/
public function isActive() {
return (bool) $this->config
->get('status');
}
/**
* {@inheritdoc}
*/
public static function getSocialNetworkKey() {
return 'twitter';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwitterAuthSettings:: |
protected | property | Consumer Key. | |
TwitterAuthSettings:: |
protected | property | Consumer secret. | |
TwitterAuthSettings:: |
public | function |
Gets the consumer key. Overrides TwitterAuthSettingsInterface:: |
|
TwitterAuthSettings:: |
public | function |
Gets the consumer secret. Overrides TwitterAuthSettingsInterface:: |
|
TwitterAuthSettings:: |
public static | function |
Returns key-name of a social network. Overrides TwitterAuthSettingsInterface:: |
|
TwitterAuthSettings:: |
public | function |
Returns status of social network. Overrides TwitterAuthSettingsInterface:: |