yii\helpers\BaseHtml::buttonInput PHP Метод

buttonInput() публичный статический Метод

Generates an input button.
public static buttonInput ( string $label = 'Button', array $options = [] ) : string
$label string the value attribute. If it is null, the value attribute will not be generated.
$options array the tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered. See [[renderTagAttributes()]] for details on how attributes are being rendered.
Результат string the generated button tag
    public static function buttonInput($label = 'Button', $options = [])
    {
        $options['type'] = 'button';
        $options['value'] = $label;
        return static::tag('input', '', $options);
    }