You are here

LinkedinAuthSettings.php in Social Auth LinkedIn 8

File

src/Settings/LinkedinAuthSettings.php
View source
<?php

namespace Drupal\social_auth_linkedin\Settings;

use Drupal\social_api\Settings\SettingsBase;

/**
 * Returns the client information.
 */
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;
  }

}

Classes

Namesort descending Description
LinkedinAuthSettings Returns the client information.