You are here

class FacebookAuthSettings in Social Auth Facebook 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings
  2. 8 src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings

Defines methods to get Social Auth Facebook app settings.

Hierarchy

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\Settings
View 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;

  /**
   * The redirect URL for social_auth implmeneter.
   *
   * @var string
   */
  protected $oauthRedirectUrl;

  /**
   * {@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

Namesort descending Modifiers Type Description Overrides
FacebookAuthSettings::$appId protected property Application ID.
FacebookAuthSettings::$appSecret protected property Application secret.
FacebookAuthSettings::$defaultToken protected property The default access token.
FacebookAuthSettings::$graphVersion protected property The default graph version.
FacebookAuthSettings::$oauthRedirectUrl protected property The redirect URL for social_auth implmeneter.
FacebookAuthSettings::getAppId public function Gets the application ID. Overrides FacebookAuthSettingsInterface::getAppId
FacebookAuthSettings::getAppSecret public function Gets the application secret. Overrides FacebookAuthSettingsInterface::getAppSecret
FacebookAuthSettings::getGraphVersion public function Gets the graph version. Overrides FacebookAuthSettingsInterface::getGraphVersion
SettingsBase::$config protected property The configuration object containing the data from the configuration form.
SettingsBase::factory public static function Factory method to create a new settings object. Overrides SettingsInterface::factory
SettingsBase::getConfig public function Gets the configuration object. Overrides SettingsInterface::getConfig
SettingsBase::__construct public function Creates a new settings object.