Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UrlResolverInterface.php

function UrlResolverInterface::getProviderByUrl

Tries to determine the oEmbed provider for a media asset URL.

Parameters

string $url: The media asset URL.

Return value

\Drupal\media\OEmbed\Provider The oEmbed provider for the asset.

Throws

\Drupal\media\OEmbed\ResourceException If the provider cannot be determined.

\Drupal\media\OEmbed\ProviderException If tne oEmbed provider causes an error.

File

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

Class

UrlResolverInterface
Defines the interface for the oEmbed URL resolver service.

Namespace

Drupal\media\OEmbed

Code

public function getProviderByUrl($url);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal