src/Yggdrasil/Utils/Templating/FormExtension.php
private function createLabel(string $text, string $name): Markup
    {
        return HtmlTag::createElement('label')
            ->set('for', $name)
            ->text($text);
    }
private function createLabel(string $text, string $name): Markup
    {
        return HtmlTag::createElement('label')
            ->set('for', $name)
            ->text($text);
    }
private function createLabel ( string $ text , string $ name ) : Markup { return HtmlTag :: createElement ( 'label' ) -> set ( 'for' , $ name ) -> text ( $ text ) ; }
Creates label for form field

@param string $text Label text
@param string $name Element name
@return Markup
Creates label for form field