function ProviderRepositoryInterface::get

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

Returns information for a specific oEmbed provider.

Parameters

string $provider_name: The name of the provider.

Return value

\Drupal\media\OEmbed\Provider A value object containing information about the provider.

Throws

\InvalidArgumentException If there is no known oEmbed provider with the specified name.

File

core/modules/media/src/OEmbed/ProviderRepositoryInterface.php, line 38

Class

ProviderRepositoryInterface
Defines an interface for a collection of oEmbed provider information.

Namespace

Drupal\media\OEmbed

Code

public function get($provider_name);

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