public function TweetFetcher::__construct in Media entity Twitter 8
Same name and namespace in other branches
- 8.2 src/TweetFetcher.php \Drupal\media_entity_twitter\TweetFetcher::__construct()
TweetFetcher constructor.
Parameters
\Drupal\Core\Cache\CacheBackendInterface|NULL $cache: (optional) A cache bin for storing fetched tweets.
File
- src/
TweetFetcher.php, line 41
Class
- TweetFetcher
- Fetches (and caches) tweet data from Twitter's API.
Namespace
Drupal\media_entity_twitterCode
public function __construct(CacheBackendInterface $cache = NULL) {
$this->cache = $cache;
}