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

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

Generates a reset input button.
public static resetInput ( string $label = 'Reset', array $options = [] ) : string
$label string the value attribute. If it is null, the value attribute will not be generated.
$options array the attributes of the button tag. The values will be HTML-encoded using [[encode()]]. Attributes whose value is null will be ignored and not put in the tag returned. See [[renderTagAttributes()]] for details on how attributes are being rendered.
Результат string the generated button tag
    public static function resetInput($label = 'Reset', $options = [])
    {
        $options['type'] = 'reset';
        $options['value'] = $label;
        return static::tag('input', '', $options);
    }