Habari\FormControlAggregate::label PHP Метод

label() публичный Метод

Shortcut to wrap this control in a label This version for this control defaults to use the control.label.outsideright template
public label ( string $label ) : FormControlLabel
$label string The caption of the label
Результат FormControlLabel The label control is returned. FYI, THIS BREAKS THE FLUENT INTERFACE.
    public function label($label)
    {
        return FormControlLabel::wrap($label, $this)->set_template('control.label.outsideright');
    }