You are here

public function TweetFetcher::__construct in Media entity Twitter 8.2

Same name and namespace in other branches
  1. 8 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_twitter

Code

public function __construct(CacheBackendInterface $cache = NULL) {
  $this->cache = $cache;
}