protected function TwitterAuth::validateConfig in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.2 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.3 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.4 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.5 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.6 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
- 8.7 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::validateConfig()
Checks that module is configured.
Parameters
\Drupal\social_auth_twitter\Settings\TwitterAuthSettings $settings: The Twitter auth settings.
Return value
bool True if module is configured, False otherwise.
1 call to TwitterAuth::validateConfig()
- TwitterAuth::initSdk in modules/
custom/ social_auth_twitter/ src/ Plugin/ Network/ TwitterAuth.php
File
- modules/
custom/ social_auth_twitter/ src/ Plugin/ Network/ TwitterAuth.php, line 95
Class
- TwitterAuth
- Defines Social Auth Twitter Network Plugin.
Namespace
Drupal\social_auth_twitter\Plugin\NetworkCode
protected function validateConfig(TwitterAuthSettings $settings) {
$consumer_key = $settings
->getConsumerKey();
$consumer_secret = $settings
->getConsumerSecret();
if (!$consumer_key || !$consumer_secret) {
$this->loggerFactory
->get('social_auth_twitter')
->error('Define Consumer Key and Consumer Secret on module settings.');
return FALSE;
}
return TRUE;
}