Reference

Guide

Html::video()

Creates a video embed via iframe for Youtube or Vimeo videos. The embed Urls are automatically detected from the given Url.

Html::video(string $url, array $options = [ ], array $attr = [ ]): string

Parameters

Name Type Default Description
$url string
$options array [ ]
$attr array [ ]

Return type

string

Source code

kirby/src/Toolkit/Html.php#L414