function Resource::getProvider

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

Returns the resource provider, if known.

Return value

\Drupal\media\OEmbed\Provider|null The resource provider, or NULL if the provider is not known.

File

core/modules/media/src/OEmbed/Resource.php, line 405

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getProvider() {
    return $this->provider;
}

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