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 22namespace Ubiquity \contents \transformation \transformers ;
33
44use Ubiquity \contents \transformation \TransformerInterface ;
5+ use Ubiquity \contents \transformation \TransformerViewInterface ;
56use Ubiquity \security \data \EncryptionManager ;
67
7- class Crypt implements TransformerInterface {
8+ class Crypt implements TransformerInterface,TransformerViewInterface {
89
910 public static function transform ($ value ) {
1011 return EncryptionManager::encrypt ($ value );
@@ -13,4 +14,8 @@ public static function transform($value) {
1314 public static function reverse ($ value ) {
1415 return EncryptionManager::decryptString ($ value );
1516 }
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