class FacebookAuthSettings in Social Auth Facebook 8
Same name and namespace in other branches
- 8.2 src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings
- 3.x src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings
Defines methods to get Social Auth Facebook app settings.
Hierarchy
- class \Drupal\social_auth_facebook\Settings\FacebookAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements FacebookAuthSettingsInterface
Expanded class hierarchy of FacebookAuthSettings
1 file declares its use of FacebookAuthSettings
- FacebookAuth.php in src/
Plugin/ Network/ FacebookAuth.php
File
- src/
Settings/ FacebookAuthSettings.php, line 10
Namespace
Drupal\social_auth_facebook\SettingsView source
class FacebookAuthSettings extends SettingsBase implements FacebookAuthSettingsInterface {
/**
* Application ID.
*
* @var string
*/
protected $appId;
/**
* Application secret.
*
* @var string
*/
protected $appSecret;
/**
* The default graph version.
*
* @var string
*/
protected $graphVersion;
/**
* The default access token.
*
* @var string
*/
protected $defaultToken;
/**
* {@inheritdoc}
*/
public function getAppId() {
if (!$this->appId) {
$this->appId = $this->config
->get('app_id');
}
return $this->appId;
}
/**
* {@inheritdoc}
*/
public function getAppSecret() {
if (!$this->appSecret) {
$this->appSecret = $this->config
->get('app_secret');
}
return $this->appSecret;
}
/**
* {@inheritdoc}
*/
public function getGraphVersion() {
if (!$this->graphVersion) {
$this->graphVersion = $this->config
->get('graph_version');
}
return $this->graphVersion;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacebookAuthSettings:: |
protected | property | Application ID. | |
FacebookAuthSettings:: |
protected | property | Application secret. | |
FacebookAuthSettings:: |
protected | property | The default access token. | |
FacebookAuthSettings:: |
protected | property | The default graph version. | |
FacebookAuthSettings:: |
public | function |
Gets the application ID. Overrides FacebookAuthSettingsInterface:: |
|
FacebookAuthSettings:: |
public | function |
Gets the application secret. Overrides FacebookAuthSettingsInterface:: |
|
FacebookAuthSettings:: |
public | function |
Gets the graph version. Overrides FacebookAuthSettingsInterface:: |