class GoogleAuthSettings in Social Auth Google 8.2
Same name and namespace in other branches
- 8 src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 3.x src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
Defines methods to get Social Auth Google settings.
Hierarchy
- class \Drupal\social_auth_google\Settings\GoogleAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements GoogleAuthSettingsInterface
Expanded class hierarchy of GoogleAuthSettings
1 file declares its use of GoogleAuthSettings
- GoogleAuth.php in src/
Plugin/ Network/ GoogleAuth.php
File
- 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;
/**
* Restricted domain.
*
* @var string
*/
protected $restrictedDomain;
/**
* {@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 getRestrictedDomain() {
if (!$this->restrictedDomain) {
$this->restrictedDomain = $this->config
->get('restricted_domain');
}
return $this->restrictedDomain;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GoogleAuthSettings:: |
protected | property | Client ID. | |
GoogleAuthSettings:: |
protected | property | Client secret. | |
GoogleAuthSettings:: |
protected | property | Restricted domain. | |
GoogleAuthSettings:: |
public | function |
Gets the client ID. Overrides GoogleAuthSettingsInterface:: |
|
GoogleAuthSettings:: |
public | function |
Gets the client secret. Overrides GoogleAuthSettingsInterface:: |
|
GoogleAuthSettings:: |
public | function |
Gets the restricted domain. Overrides GoogleAuthSettingsInterface:: |