public function TwitterProfileInterface::checkConnection in Twitter Profile Widget 8
Same name and namespace in other branches
- 8.2 src/TwitterProfileInterface.php \Drupal\twitter_profile_widget\TwitterProfileInterface::checkConnection()
Helper query to check whether the credentials are valid.
Parameters
string $key: Twitter API key.
string $secret: Twitter API secret.
Return value
bool|string Whether or not the connection is valid. If error message, return that.
1 method overrides TwitterProfileInterface::checkConnection()
- TwitterProfile::checkConnection in src/
TwitterProfile.php - Helper query to check whether the credentials are valid.
File
- src/
TwitterProfileInterface.php, line 36
Class
- TwitterProfileInterface
- Interface TwitterProfileInterface.
Namespace
Drupal\twitter_profile_widgetCode
public function checkConnection($key = '', $secret = '');