Html::youtube()
Embeds a YouTube video by URL in an <iframe>
Html::youtube(string $url, array $options = [ ], array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$url |
string |
– | YouTube video URL |
$options |
array |
[ ] |
Query params for the embed URL |
$attr |
array |
[ ] |
Additional attributes for the |
Return type
string
Inherited from
Kirby\Toolkit\Html