function Endpoint::getProvider

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

Returns the provider this endpoint belongs to.

Return value

\Drupal\media\OEmbed\Provider The provider object.

File

core/modules/media/src/OEmbed/Endpoint.php, line 108

Class

Endpoint
Value object for oEmbed provider endpoints.

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.