yii\widgets\ActiveField::getInputId PHP Method

getInputId() protected method

Returns the HTML id of the input element of this form field.
Since: 2.0.7
protected getInputId ( ) : string
return string the input id.
    protected function getInputId()
    {
        return $this->_inputId ?: Html::getInputId($this->model, $this->attribute);
    }

Usage Example

 protected function getInputId()
 {
     return $this->_inputId ?: parent::getInputId();
 }