UrlResolverInterface
interface UrlResolverInterface (View source)
Defines the interface for the oEmbed URL resolver service.
The URL resolver is responsible for converting oEmbed-compatible media asset URLs into canonical resource URLs, at which an oEmbed representation of the asset can be retrieved.
Methods
getProviderByUrl(string $url)
Tries to determine the oEmbed provider for a media asset URL.
string
getResourceUrl(string $url, int $max_width = NULL, int $max_height = NULL)
Builds the resource URL for a media asset URL.
Details
Provider
getProviderByUrl(string $url)
Tries to determine the oEmbed provider for a media asset URL.
string
getResourceUrl(string $url, int $max_width = NULL, int $max_height = NULL)
Builds the resource URL for a media asset URL.