social_auth_steemconnect-8.x-2.x-dev/src/Settings/SteemconnectAuthSettings.php
src/Settings/SteemconnectAuthSettings.php
<?php
namespace Drupal\social_auth_steemconnect\Settings;
use Drupal\social_api\Settings\SettingsBase;
/**
* Defines methods to get Social Auth Steemconnect settings.
*/
class SteemconnectAuthSettings extends SettingsBase implements SteemconnectAuthSettingsInterface {
/**
* 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;
}
}
