protected function LinkedInAuth::validateConfig in Social Auth LinkedIn 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Network/LinkedInAuth.php \Drupal\social_auth_linkedin\Plugin\Network\LinkedInAuth::validateConfig()
Checks that module is configured.
Parameters
\Drupal\social_auth_linkedin\Settings\LinkedInAuthSettings $settings: The LinkedIn auth settings.
Return value
bool True if module is configured. False otherwise.
1 call to LinkedInAuth::validateConfig()
- LinkedInAuth::initSdk in src/
Plugin/ Network/ LinkedInAuth.php - Sets the underlying SDK library.
File
- src/
Plugin/ Network/ LinkedInAuth.php, line 79
Class
- LinkedInAuth
- Defines a Network Plugin for Social Auth LinkedIn.
Namespace
Drupal\social_auth_linkedin\Plugin\NetworkCode
protected function validateConfig(LinkedInAuthSettings $settings) {
$client_id = $settings
->getClientId();
$client_secret = $settings
->getClientSecret();
if (!$client_id || !$client_secret) {
$this->loggerFactory
->get('social_auth_linkedin')
->error('Define Client ID and Client Secret in module settings.');
return FALSE;
}
return TRUE;
}