yii\widgets\ActiveField::getInputId PHP Méthode

getInputId() protected méthode

Returns the HTML id of the input element of this form field.
Since: 2.0.7
protected getInputId ( ) : string
Résultat 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();
 }