Html::vimeo()
Embeds a Vimeo video by URL in an <iframe>
Html::vimeo(string $url, array $options = [ ], array $attr = [ ]): string|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$urlrequired | string |
no default value | Vimeo video URL |
$options | array |
[ ]
|
Query params for the embed URL |
$attr | array |
[ ]
|
Additional attributes for the <iframe> tag |
Return types
string
ornull
The generated HTML