ActiveField.php
public function input($type, $options = []) {
    $options = array_merge($this->inputOptions, [
        'class' => 'hint-' . Html::getInputId($this->model, $this->attribute)
    ]);
    $this->adjustLabelFor($options);
    $this->parts['{input}'] = Html::activeInput($type, $this->model, $this->attribute, $options);

    return $this;
  }
public function input($type, $options = []) {
    $options = array_merge($this->inputOptions, [
        'class' => 'hint-' . Html::getInputId($this->model, $this->attribute)
    ]);
    $this->adjustLabelFor($options);
    $this->parts['{input}'] = Html::activeInput($type, $this->model, $this->attribute, $options);

    return $this;
  }
public function input ( $ type , $ options = [ ] ) { $ options = array_merge ( $ this -> inputOptions , [ 'class' => 'hint-' . Html :: getInputId ( $ this -> model , $ this -> attribute ) ] ) ; $ this -> adjustLabelFor ( $ options ) ; $ this -> parts [ '{input}' ] = Html :: activeInput ( $ type , $ this -> model , $ this -> attribute , $ options ) ; return $ this ; }
Renders an input tag.
@param string $type the input type (e.g. 'text', 'password')
@param array $options 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 [[Html::encode()]].
@return static the field object itself
Renders an input tag .