Skip to content
Snippets Groups Projects

Issue #3281357: Add ability to modify the embed options

Files
2
+ 1
0
@@ -44,6 +44,7 @@ class UrlEmbed implements UrlEmbedInterface {
@@ -44,6 +44,7 @@ class UrlEmbed implements UrlEmbedInterface {
* @{inheritdoc}
* @{inheritdoc}
*/
*/
public function getEmbed($request, array $config = []) {
public function getEmbed($request, array $config = []) {
 
\Drupal::moduleHandler()->invokeAll('url_embed_options_alter', [$request, &$config]);
return Embed::create($request, $config ?: $this->config);
return Embed::create($request, $config ?: $this->config);
}
}
Loading