You are here

public function Endpoint::getUrl in Drupal 9

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