You are here

public function Endpoint::getSchemes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/OEmbed/Endpoint.php \Drupal\media\OEmbed\Endpoint::getSchemes()
  2. 9 core/modules/media/src/OEmbed/Endpoint.php \Drupal\media\OEmbed\Endpoint::getSchemes()

Returns list of URL schemes supported by the provider.

Return value

string[] List of schemes.

1 call to Endpoint::getSchemes()
Endpoint::matchUrl in core/modules/media/src/OEmbed/Endpoint.php
Tries to match a URL against the endpoint schemes.

File

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

Class

Endpoint
Value object for oEmbed provider endpoints.

Namespace

Drupal\media\OEmbed

Code

public function getSchemes() {
  return $this->schemes;
}