You are here

class LinkedInAuthSettings in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  2. 8.2 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  3. 8.3 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  4. 8.4 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  5. 8.5 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  6. 8.6 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  7. 8.7 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
  8. 8.8 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings

Defines methods to get Social Auth LinkedIn app settings.

Hierarchy

Expanded class hierarchy of LinkedInAuthSettings

3 files declare their use of LinkedInAuthSettings
LinkedInAuth.php in modules/custom/social_auth_linkedin/src/Plugin/Network/LinkedInAuth.php
LinkedInAuthManager.php in modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php
LinkedInUserManager.php in modules/custom/social_auth_linkedin/src/LinkedInUserManager.php

File

modules/custom/social_auth_linkedin/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;
  }

  /**
   * {@inheritdoc}
   */
  public function isActive() {
    return (bool) $this->config
      ->get('status');
  }

  /**
   * {@inheritdoc}
   */
  public static function getSocialNetworkKey() {
    return 'linkedin';
  }

}

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
LinkedInAuthSettings::getSocialNetworkKey public static function Returns key-name of a social network. Overrides LinkedInAuthSettingsInterface::getSocialNetworkKey
LinkedInAuthSettings::isActive public function Returns status of social network. Overrides LinkedInAuthSettingsInterface::isActive