You are here

protected function Embed::getEmbedProviderURL in CKEditor Media Embed Plugin 8

1 call to Embed::getEmbedProviderURL()
Embed::getEmbedObject in src/Embed.php
Retrieve the Embed object as provided by the embed provider.

File

src/Embed.php, line 148

Class

Embed
The default CKEditor Media Embed class.

Namespace

Drupal\ckeditor_media_embed

Code

protected function getEmbedProviderURL($url) {
  $provider = $this->embed_provider;
  if (strpos($provider, '//') === 0) {
    $provider = $this->requestStack
      ->getCurrentRequest()
      ->getScheme() . ':' . $provider;
  }
  return str_replace('%7Burl%7D', urlencode($url), $provider);
}