GoogleAuthSettings.php in Social Auth Google 8
File
src/Settings/GoogleAuthSettings.php
View source
<?php
namespace Drupal\social_auth_google\Settings;
use Drupal\social_api\Settings\SettingsBase;
class GoogleAuthSettings extends SettingsBase implements GoogleAuthSettingsInterface {
protected $clientId;
protected $clientSecret;
protected $restrictedDomain;
public function getClientId() {
if (!$this->clientId) {
$this->clientId = $this->config
->get('client_id');
}
return $this->clientId;
}
public function getClientSecret() {
if (!$this->clientSecret) {
$this->clientSecret = $this->config
->get('client_secret');
}
return $this->clientSecret;
}
public function getRestrictedDomain() {
if (!$this->restrictedDomain) {
$this->restrictedDomain = $this->config
->get('restricted_domain');
}
return $this->restrictedDomain;
}
}