File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Ubiquity/contents/transformation/transformers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
namespace Ubiquity \contents \transformation \transformers ;
3
3
4
4
use Ubiquity \contents \transformation \TransformerInterface ;
5
+ use Ubiquity \contents \transformation \TransformerViewInterface ;
5
6
use Ubiquity \security \data \EncryptionManager ;
6
7
7
- class Crypt implements TransformerInterface {
8
+ class Crypt implements TransformerInterface,TransformerViewInterface {
8
9
9
10
public static function transform ($ value ) {
10
11
return EncryptionManager::encrypt ($ value );
@@ -13,4 +14,8 @@ public static function transform($value) {
13
14
public static function reverse ($ value ) {
14
15
return EncryptionManager::decryptString ($ value );
15
16
}
16
- }
17
+
18
+ public static function toView ($ value ) {
19
+ return EncryptionManager::decryptString ($ value );
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments