Prado\Web\UI\WebControls\THotSpot::getViewState PHP Method

getViewState() protected method

This function is very useful in defining getter functions for component properties that must be kept in viewstate.
protected getViewState ( $key, $defaultValue = null ) : mixed
return mixed the viewstate value corresponding to $key
    protected function getViewState($key, $defaultValue = null)
    {
        return isset($this->_viewState[$key]) ? $this->_viewState[$key] : $defaultValue;
    }