interface TwitterProfileInterface in Twitter Profile Widget 8.2
Same name and namespace in other branches
- 8 src/TwitterProfileInterface.php \Drupal\twitter_profile_widget\TwitterProfileInterface
- 3.x src/TwitterProfileInterface.php \Drupal\twitter_profile_widget\TwitterProfileInterface
Interface TwitterProfileInterface.
@package Drupal\twitter_profile_widget
Hierarchy
- interface \Drupal\twitter_profile_widget\TwitterProfileInterface
Expanded class hierarchy of TwitterProfileInterface
All classes that implement TwitterProfileInterface
File
- src/
TwitterProfileInterface.php, line 10
Namespace
Drupal\twitter_profile_widgetView source
interface TwitterProfileInterface {
/**
* Pull tweets from the Twitter API.
*
* @param array $instance
* All the data for the given Twitter widget.
*
* @return str[]
* An array of Twitter objects.
*/
public function pull(array $instance);
/**
* Helper query to check whether the credentials are valid.
*
* @param string $key
* Twitter API key.
* @param string $secret
* Twitter API secret.
*
* @return bool|string
* Whether or not the connection is valid. If error message, return that.
*/
public function checkConnection($key = '', $secret = '');
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwitterProfileInterface:: |
public | function | Helper query to check whether the credentials are valid. | 1 |
TwitterProfileInterface:: |
public | function | Pull tweets from the Twitter API. | 1 |