class GoogleAuthSettings in Social Auth Google 8
Same name and namespace in other branches
- 8.2 src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
- 3.x src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings
Returns the client information.
Hierarchy
- class \Drupal\social_auth_google\Settings\GoogleAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements GoogleAuthSettingsInterface
Expanded class hierarchy of GoogleAuthSettings
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:: |