GoogleAuthSettings.php in Open Social 8.3
Same filename and directory in other branches
- 8.9 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.2 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.4 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.5 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.6 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.7 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
- 8.8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php
Namespace
Drupal\social_auth_google\SettingsFile
modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.phpView source
<?php
namespace Drupal\social_auth_google\Settings;
use Drupal\social_api\Settings\SettingsBase;
/**
* Defines methods to get Social Auth Google app settings.
*/
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';
}
}
Classes
Name | Description |
---|---|
GoogleAuthSettings | Defines methods to get Social Auth Google app settings. |