function UrlResolverInterface::getResourceUrl

Same name in other branches
  1. 9 core/modules/media/src/OEmbed/UrlResolverInterface.php \Drupal\media\OEmbed\UrlResolverInterface::getResourceUrl()
  2. 8.9.x core/modules/media/src/OEmbed/UrlResolverInterface.php \Drupal\media\OEmbed\UrlResolverInterface::getResourceUrl()
  3. 10 core/modules/media/src/OEmbed/UrlResolverInterface.php \Drupal\media\OEmbed\UrlResolverInterface::getResourceUrl()

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.

File

core/modules/media/src/OEmbed/UrlResolverInterface.php, line 43

Class

UrlResolverInterface
Defines the interface for the oEmbed URL resolver service.

Namespace

Drupal\media\OEmbed

Code

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

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