function Endpoint::getSchemes

Same name in other branches
  1. 9 core/modules/media/src/OEmbed/Endpoint.php \Drupal\media\OEmbed\Endpoint::getSchemes()
  2. 10 core/modules/media/src/OEmbed/Endpoint.php \Drupal\media\OEmbed\Endpoint::getSchemes()
  3. 11.x 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;
}

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