class GoogleAuthSettings in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.2 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.3 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.5 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.6 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.7 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 8.8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
Defines methods to get Social Auth Google app settings.
Hierarchy
- class \Drupal\social_auth_google\Settings\GoogleAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements GoogleAuthSettingsInterface
Expanded class hierarchy of GoogleAuthSettings
3 files declare their use of GoogleAuthSettings
- GoogleAuth.php in modules/
custom/ social_auth_google/ src/ Plugin/ Network/ GoogleAuth.php - GoogleAuthManager.php in modules/
custom/ social_auth_google/ src/ GoogleAuthManager.php - GoogleUserManager.php in modules/
custom/ social_auth_google/ src/ GoogleUserManager.php
File
- modules/
custom/ social_auth_google/ src/ Settings/ GoogleAuthSettings.php, line 10
Namespace
Drupal\social_auth_google\SettingsView source
class GoogleAuthSettings extends SettingsBase implements GoogleAuthSettingsInterface {
/**
* Client ID.
*
* @var string
*/
protected $clientId;
/**
* Client secret.
*
* @var string
*/
protected $clientSecret;
/**
* {@inheritdoc}
*/
public function getClientId() {
if (!$this->clientId) {
$this->clientId = $this->config
->get('client_id');
}
return $this->clientId;
}
/**
* {@inheritdoc}
*/
public function getClientSecret() {
if (!$this->clientSecret) {
$this->clientSecret = $this->config
->get('client_secret');
}
return $this->clientSecret;
}
/**
* {@inheritdoc}
*/
public function isActive() {
return (bool) $this->config
->get('status');
}
/**
* {@inheritdoc}
*/
public static function getSocialNetworkKey() {
return 'google';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GoogleAuthSettings:: |
protected | property | Client ID. | |
GoogleAuthSettings:: |
protected | property | Client secret. | |
GoogleAuthSettings:: |
public | function |
Gets the client ID. Overrides GoogleAuthSettingsInterface:: |
|
GoogleAuthSettings:: |
public | function |
Gets the client secret. Overrides GoogleAuthSettingsInterface:: |
|
GoogleAuthSettings:: |
public static | function |
Returns key-name of a social network. Overrides GoogleAuthSettingsInterface:: |
|
GoogleAuthSettings:: |
public | function |
Returns status of social network. Overrides GoogleAuthSettingsInterface:: |