protected function getState($key)
    {
        if (!Yii::$app->has('session')) {
            return null;
        }
        /* @var \yii\web\Session $session */
        $session = Yii::$app->get('session');
        $key = $this->getStateKeyPrefix() . $key;
        $value = $session->get($key);
        return $value;
    }
protected function getState($key)
    {
        if (!Yii::$app->has('session')) {
            return null;
        }
        /* @var \yii\web\Session $session */
        $session = Yii::$app->get('session');
        $key = $this->getStateKeyPrefix() . $key;
        $value = $session->get($key);
        return $value;
    }
protected function getState ( $ key ) { if ( ! Yii :: $ app -> has ( 'session' ) ) { return null ; } /* @var \yii\web\Session $session */ $ session = Yii :: $ app -> get ( 'session' ) ; $ key = $ this -> getStateKeyPrefix ( ) . $ key ; $ value = $ session -> get ( $ key ) ; return $ value ; }
Returns persistent state value.
@param string $key state key.
@return mixed state value.
Returns persistent state value .