Reference

Guide

Html::a()

Generates an a tag with an absolute Url

Html::a(string $href = null, string|array|null $text = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$href string null

Relative or absolute Url

$text string|array|null null

If null, the link will be used as link text. If an array is passed, each element will be added unencoded

$attr array [ ]

Additional attributes for the a tag.

Return type

string

Source code

kirby/src/Cms/Html.php#L25