public function UrlEmbed::getEmbed in URL Embed 8
inheritdoc}
Overrides UrlEmbedInterface::getEmbed
File
- src/
UrlEmbed.php, line 46 - Contains Drupal\url_embed\UrlEmbed.
Class
- UrlEmbed
- A service class for handling URL embeds.
Namespace
Drupal\url_embedCode
public function getEmbed($request, array $config = []) {
return Embed::create($request, $config ?: $this->config);
}