You are here

public function ProviderRepositoryInterface::get in Drupal 8

Same name and namespace in other branches
  1. 9 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);