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

Breadcrumb

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

function 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;
}
RSS feed
Powered by Drupal