public function FacebookFetcher::__construct in Media entity facebook 8.2
Same name and namespace in other branches
- 8 src/FacebookFetcher.php \Drupal\media_entity_facebook\FacebookFetcher::__construct()
- 3.x src/FacebookFetcher.php \Drupal\media_entity_facebook\FacebookFetcher::__construct()
FacebookFetcher constructor.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: The logger factory.
\GuzzleHttp\ClientInterface $client: The Guzzle HTTP client.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- src/
FacebookFetcher.php, line 53
Class
- FacebookFetcher
- Class FacebookFetcher.
Namespace
Drupal\media_entity_facebookCode
public function __construct(LoggerChannelFactoryInterface $logger_channel_factory, ClientInterface $client, LanguageManagerInterface $language_manager) {
$this->loggerChannel = $logger_channel_factory
->get('media_entity_facebook');
$this->httpClient = $client;
$this->languageManager = $language_manager;
}