Reference

Html::figure()

Creates a figure tag with optional caption

Html::figure(string|array $content, string|array $caption = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$content string|array
$caption string|array null
$attr array [ ]

Return type

string

Source code

kirby/src/Toolkit/Html.php#L233