TbHtml::createCheckBoxAndRadioButtonLabel PHP 메소드

createCheckBoxAndRadioButtonLabel() 보호된 정적인 메소드

Generates a label for a checkbox or radio input by wrapping the input.
protected static createCheckBoxAndRadioButtonLabel ( string $label, string $input, array $htmlOptions ) : string
$label string the label text.
$input string the input.
$htmlOptions array additional HTML attributes.
리턴 string the generated label.
    protected static function createCheckBoxAndRadioButtonLabel($label, $input, $htmlOptions)
    {
        list($hidden, $input) = self::normalizeCheckBoxAndRadio($input);
        return $hidden . ($label !== false ? self::tag('label', $htmlOptions, $input . ' ' . $label) : $input);
    }
TbHtml