widgets/Comment.php
protected function getEncryptedEntity()
    {
        return utf8_encode(Yii::$app->getSecurity()->encryptByKey(Json::encode([
            'entity' => $this->entity,
            'entityId' => $this->entityId,
            'relatedTo' => $this->relatedTo,
        ]), $this->getModule()->id));
    }
protected function getEncryptedEntity()
    {
        return utf8_encode(Yii::$app->getSecurity()->encryptByKey(Json::encode([
            'entity' => $this->entity,
            'entityId' => $this->entityId,
            'relatedTo' => $this->relatedTo,
        ]), $this->getModule()->id));
    }
protected function getEncryptedEntity ( ) { return utf8_encode ( Yii :: $ app -> getSecurity ( ) -> encryptByKey ( Json :: encode ( [ 'entity' => $ this -> entity , 'entityId' => $ this -> entityId , 'relatedTo' => $ this -> relatedTo , ] ) , $ this -> getModule ( ) -> id ) ) ; }
Get encrypted entity

@return string
Get encrypted entity