media-soundcloud-embed.html.twig in Media entity Soundcloud 8
Same filename and directory in other branches
Default theme implementation to embed a soundcloud url.
Available variables:
- width: The width of the iframe.
- height: The height of the iframe.
- type: The type of embed: visual or classic.
See also
1 theme call to media-soundcloud-embed.html.twig
- SoundcloudEmbedFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ SoundcloudEmbedFormatter.php - Builds a renderable array for a field value.
File
templates/media-soundcloud-embed.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to embed a soundcloud url.
- *
- * Available variables:
- * - width: The width of the iframe.
- * - height: The height of the iframe.
- * - type: The type of embed: visual or classic.
- *
- * @see template_preprocess_media_soundcloud_embed()
- *
- * @ingroup themeable
- */
- #}
- <iframe width="{{ width }}" height="{{ height }}" scrolling="no" frameborder="no" src="{{ url }}"></iframe>