function UrlResolver::__construct

Same name and namespace in other branches
  1. 10 core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
  2. 11.x core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
  3. 9 core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
  4. 8.9.x core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()

File

core/modules/media/src/OEmbed/UrlResolver.php, line 30

Class

UrlResolver
Converts oEmbed media URLs into endpoint-specific resource URLs.

Namespace

Drupal\media\OEmbed

Code

public function __construct(protected ProviderRepositoryInterface $providers, protected ResourceFetcherInterface $resourceFetcher, protected ClientInterface $httpClient, protected ModuleHandlerInterface $moduleHandler, #[Autowire(service: 'cache.default')] protected CacheBackendInterface $cacheBackend) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.