kartik\tree\TreeViewInput::getInput PHP Method

getInput() public method

Generates the hidden input for storage
public getInput ( ) : string
return string
    public function getInput()
    {
        if ($this->hasModel()) {
            return Html::activeHiddenInput($this->model, $this->attribute, $this->options);
        }
        return Html::hiddenInput($this->name, $this->value, $this->options);
    }