function ResourceFetcher::__construct
Same name in other branches
- 9 core/modules/media/src/OEmbed/ResourceFetcher.php \Drupal\media\OEmbed\ResourceFetcher::__construct()
- 8.9.x core/modules/media/src/OEmbed/ResourceFetcher.php \Drupal\media\OEmbed\ResourceFetcher::__construct()
- 10 core/modules/media/src/OEmbed/ResourceFetcher.php \Drupal\media\OEmbed\ResourceFetcher::__construct()
Constructs a ResourceFetcher object.
Parameters
\GuzzleHttp\ClientInterface $httpClient: The HTTP client.
\Drupal\media\OEmbed\ProviderRepositoryInterface $providers: The oEmbed provider repository service.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.
int $timeout: The length of time to wait for the request before the request should time out.
File
-
core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php, line 31
Class
- ResourceFetcher
- Fetches and caches oEmbed resources.
Namespace
Drupal\media\OEmbedCode
public function __construct(ClientInterface $httpClient, ProviderRepositoryInterface $providers, CacheBackendInterface $cacheBackend, int $timeout = 5) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.