TwitterAuthSettings.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.2 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.3 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.4 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.5 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.6 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
- 8.8 modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.php
Namespace
Drupal\social_auth_twitter\SettingsFile
modules/custom/social_auth_twitter/src/Settings/TwitterAuthSettings.phpView source
<?php
namespace Drupal\social_auth_twitter\Settings;
use Drupal\social_api\Settings\SettingsBase;
/**
* Returns the client information.
*/
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';
}
}
Classes
Name | Description |
---|---|
TwitterAuthSettings | Returns the client information. |