protected function field($form, $model, $attribute, $button)
    {
        $field = $form->field($model, $attribute, $this->fieldOptions);
        $field = call_user_func_array([$field, $this->inputMethod], $this->inputMethodArgs);
        return str_replace('{button}', $button, $field);
    }
protected function field($form, $model, $attribute, $button)
    {
        $field = $form->field($model, $attribute, $this->fieldOptions);
        $field = call_user_func_array([$field, $this->inputMethod], $this->inputMethodArgs);
        return str_replace('{button}', $button, $field);
    }
protected function field ( $ form , $ model , $ attribute , $ button ) { $ field = $ form -> field ( $ model , $ attribute , $ this -> fieldOptions ) ; $ field = call_user_func_array ( [ $ field , $ this -> inputMethod ] , $ this -> inputMethodArgs ) ; return str_replace ( '{button}' , $ button , $ field ) ; }
Render field of \yii\widgets\ActiveForm.
@param \yii\widgets\ActiveForm $form
@param \yii\base\Model $model The data model.
@param string $attribute Attribute name.
@param string $button Action button of field.
@return string
Render field of \ yii \ widgets \ ActiveForm .