Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResourceFetcher.php

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\OEmbed

Code

public function __construct(ClientInterface $httpClient, ProviderRepositoryInterface $providers, CacheBackendInterface $cacheBackend, int $timeout = 5) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal