function Endpoint::getUrl

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

Returns the endpoint URL.

The URL will be built with the first available format. If the endpoint does not provide any formats, JSON will be used.

Return value

string The endpoint URL.

1 call to Endpoint::getUrl()
Endpoint::buildResourceUrl in core/modules/media/src/OEmbed/Endpoint.php
Builds and returns the endpoint URL.

File

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

Class

Endpoint
Value object for oEmbed provider endpoints.

Namespace

Drupal\media\OEmbed

Code

public function getUrl() {
    return $this->url;
}

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