function 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(protected ClientInterface $httpClient, protected ProviderRepositoryInterface $providers, protected CacheBackendInterface $cacheBackend, protected int $timeout = 5) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.