FacebookAuthSettings.php in Open Social 8.5
Same filename and directory in other branches
- 8.9 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.2 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.3 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.4 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.6 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.7 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
- 8.8 modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.php
Namespace
Drupal\social_auth_facebook\SettingsFile
modules/custom/social_auth_facebook/src/Settings/FacebookAuthSettings.phpView source
<?php
namespace Drupal\social_auth_facebook\Settings;
use Drupal\social_api\Settings\SettingsBase;
/**
* Defines methods to get Social Auth Facebook app settings.
*/
class FacebookAuthSettings extends SettingsBase implements FacebookAuthSettingsInterface {
/**
* Facebook Application ID.
*
* @var string
*/
protected $appId;
/**
* Facebook 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;
}
/**
* {@inheritdoc}
*/
public function isActive() {
return (bool) $this->config
->get('status');
}
/**
* {@inheritdoc}
*/
public static function getSocialNetworkKey() {
return 'facebook';
}
}
Classes
Name | Description |
---|---|
FacebookAuthSettings | Defines methods to get Social Auth Facebook app settings. |