function ProviderRepositoryInterface::get

Same name in other branches
  1. 8.9.x core/modules/media/src/OEmbed/ProviderRepositoryInterface.php \Drupal\media\OEmbed\ProviderRepositoryInterface::get()
  2. 10 core/modules/media/src/OEmbed/ProviderRepositoryInterface.php \Drupal\media\OEmbed\ProviderRepositoryInterface::get()
  3. 11.x 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.

1 method overrides ProviderRepositoryInterface::get()
ProviderRepository::get in core/modules/media/src/OEmbed/ProviderRepository.php
Returns information for a specific oEmbed provider.

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.