public function Embed::setEmbedProvider in CKEditor Media Embed Plugin 8
Sets specified provider url as the provider URL.
Overrides EmbedInterface::setEmbedProvider
1 call to Embed::setEmbedProvider()
- Embed::__construct in src/
Embed.php - Constructs an Embed object.
File
- src/
Embed.php, line 110
Class
- Embed
- The default CKEditor Media Embed class.
Namespace
Drupal\ckeditor_media_embedCode
public function setEmbedProvider($provider) {
$provider_parsed = UrlHelper::parse($provider);
$provider_parsed['query'] = array_filter($provider_parsed['query'], function ($value) {
return $value !== '{callback}';
});
$provider_parsed['absolute'] = TRUE;
$this->embed_provider = $this->urlAssembler
->assemble($provider_parsed['path'], $provider_parsed);
}