class LinkedInAuthSettings in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8.2 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8.4 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8.5 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8.6 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 8.7 modules/custom/social_auth_linkedin/src/Settings/LinkedInAuthSettings.php \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings
- 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
- class \Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings extends \Drupal\social_api\Settings\SettingsBase implements LinkedInAuthSettingsInterface
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\SettingsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkedInAuthSettings:: |
protected | property | Client ID. | |
LinkedInAuthSettings:: |
protected | property | Client Secret. | |
LinkedInAuthSettings:: |
public | function |
Gets the client ID. Overrides LinkedInAuthSettingsInterface:: |
|
LinkedInAuthSettings:: |
public | function |
Gets the client secret. Overrides LinkedInAuthSettingsInterface:: |
|
LinkedInAuthSettings:: |
public static | function |
Returns key-name of a social network. Overrides LinkedInAuthSettingsInterface:: |
|
LinkedInAuthSettings:: |
public | function |
Returns status of social network. Overrides LinkedInAuthSettingsInterface:: |