controllers/DefaultController.php
protected function getCommentAttributesFromEntity($entity)
    {
        $decryptEntity = Yii::$app->getSecurity()->decryptByKey(utf8_decode($entity), $this->getModule()->id);
        if (false !== $decryptEntity) {
            return Json::decode($decryptEntity);
        }

        throw new BadRequestHttpException(Yii::t('yii2mod.comments', 'Oops, something went wrong. Please try again later.'));
    }
protected function getCommentAttributesFromEntity($entity)
    {
        $decryptEntity = Yii::$app->getSecurity()->decryptByKey(utf8_decode($entity), $this->getModule()->id);
        if (false !== $decryptEntity) {
            return Json::decode($decryptEntity);
        }

        throw new BadRequestHttpException(Yii::t('yii2mod.comments', 'Oops, something went wrong. Please try again later.'));
    }
protected function getCommentAttributesFromEntity ( $ entity ) { $ decryptEntity = Yii :: $ app -> getSecurity ( ) -> decryptByKey ( utf8_decode ( $ entity ) , $ this -> getModule ( ) -> id ) ; if ( false !== $ decryptEntity ) { return Json :: decode ( $ decryptEntity ) ; } throw new BadRequestHttpException ( Yii :: t ( 'yii2mod.comments' , 'Oops, something went wrong. Please try again later.' ) ) ; }
Get list of attributes from encrypted entity

@param $entity string encrypted entity

@return array|mixed

@throws BadRequestHttpException
Get list of attributes from encrypted entity