You are here

class UrlResolver in Media Migration 8

Simple oEmbed URL resolver replacement for remote media migration tests.

Hierarchy

Expanded class hierarchy of UrlResolver

File

tests/modules/media_migration_test_oembed/src/UrlResolver.php, line 10

Namespace

Drupal\media_migration_test_oembed
View source
class UrlResolver extends BaseUrlResolver {

  /**
   * {@inheritdoc}
   */
  public function getResourceUrl($url, $max_width = NULL, $max_height = NULL) {
    return $url;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UrlResolver::$httpClient protected property The HTTP client.
UrlResolver::$moduleHandler protected property The module handler service.
UrlResolver::$providers protected property The OEmbed provider repository service.
UrlResolver::$resourceFetcher protected property The OEmbed resource fetcher service.
UrlResolver::$urlCache protected property Static cache of discovered oEmbed resource URLs, keyed by canonical URL.
UrlResolver::discoverResourceUrl protected function Runs oEmbed discovery and returns the endpoint URL if successful.
UrlResolver::findUrl protected function Tries to find the oEmbed URL in a DOM.
UrlResolver::getProviderByUrl public function Tries to determine the oEmbed provider for a media asset URL. Overrides UrlResolverInterface::getProviderByUrl
UrlResolver::getResourceUrl public function Builds the resource URL for a media asset URL. Overrides UrlResolver::getResourceUrl
UrlResolver::__construct public function Constructs a UrlResolver object.
UseCacheBackendTrait::$cacheBackend protected property Cache backend instance.
UseCacheBackendTrait::$useCaches protected property Flag whether caches should be used or skipped.
UseCacheBackendTrait::cacheGet protected function Fetches from the cache backend, respecting the use caches flag. 1
UseCacheBackendTrait::cacheSet protected function Stores data in the persistent cache, respecting the use caches flag.