LinkedInAuthSettings.php in Open Social 8.6
Same filename and directory in other branches
- 8.9 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.2 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.3 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.4 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.5 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.7 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
- 8.8 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php
Namespace
Drupal\social_auth_linkedin\SettingsFile
modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.phpView source
<?php
namespace Drupal\social_auth_linkedin\Settings;
use Drupal\social_api\Settings\SettingsBase;
/**
* Defines methods to get Social Auth LinkedIn app settings.
*/
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';
}
}
Classes
Name | Description |
---|---|
LinkedInAuthSettings | Defines methods to get Social Auth LinkedIn app settings. |