You are here

class LinkedInAuthSettings in Social Auth LinkedIn 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  2. 8 src/Settings/LinkedinAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedinAuthSettings

Defines methods to get Social Auth LinkedIn settings.

Hierarchy

Expanded class hierarchy of LinkedInAuthSettings

1 file declares its use of LinkedInAuthSettings
LinkedInAuth.php in src/Plugin/Network/LinkedInAuth.php

File

src/Settings/LinkedInAuthSettings.php, line 10

Namespace

Drupal\social_auth_linkedin\Settings
View source
class LinkedInAuthSettings extends SettingsBase implements LinkedInAuthSettingsInterface {

  /**
   * 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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LinkedInAuthSettings::$clientId protected property Client ID.
LinkedInAuthSettings::$clientSecret protected property Client secret.
LinkedInAuthSettings::getClientId public function Gets the client ID. Overrides LinkedInAuthSettingsInterface::getClientId
LinkedInAuthSettings::getClientSecret public function Gets the client secret. Overrides LinkedInAuthSettingsInterface::getClientSecret
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.