You are here

public function UrlResolver::getResourceUrl in Media Migration 8

Builds the resource URL for a media asset URL.

Parameters

string $url: The media asset URL.

int $max_width: (optional) Maximum width of the oEmbed resource, in pixels.

int $max_height: (optional) Maximum height of the oEmbed resource, in pixels.

Return value

string Returns the resource URL corresponding to the given media item URL.

Overrides UrlResolver::getResourceUrl

File

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

Class

UrlResolver
Simple oEmbed URL resolver replacement for remote media migration tests.

Namespace

Drupal\media_migration_test_oembed

Code

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