public function TweetFetcherInterface::fetchTweet in Media entity Twitter 8.2
Same name and namespace in other branches
- 8 src/TweetFetcherInterface.php \Drupal\media_entity_twitter\TweetFetcherInterface::fetchTweet()
Retrieves a tweet by its ID.
Parameters
int $id: The tweet ID.
Return value
array The tweet information.
Throws
\Drupal\media_entity_twitter\Exception\TwitterApiException If the Twitter API returns errors in the response.
1 method overrides TweetFetcherInterface::fetchTweet()
- TweetFetcher::fetchTweet in src/
TweetFetcher.php - Retrieves a tweet by its ID.
File
- src/
TweetFetcherInterface.php, line 22
Class
- TweetFetcherInterface
- Defines a wrapper around the Twitter API.
Namespace
Drupal\media_entity_twitterCode
public function fetchTweet($id);