File tree 1 file changed +16
-0
lines changed
src/YawikXingVendorApi/Filter/XingData
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,22 @@ public function filter($value)
36
36
$ logger = $ value ->getLogger ();
37
37
$ job = $ value ->getJob ();
38
38
39
+ if (isset ($ data ['xingLocation ' ])) {
40
+ $ xingData ->setCity ($ data ['xingLocation ' ]['city ' ]);
41
+ $ xingData ->setTags ($ data ['xingLocation ' ]['city ' ], 'prepend ' );
42
+ $ logger && $ logger ->info ('----> Set City via "xingLocation": ' . $ data ['xingLocation ' ]['city ' ]);
43
+ if (isset ($ data ['xingLocation ' ]['postcode ' ])) {
44
+ $ xingData ->setZipcode ($ data ['xingLocation ' ]['postcode ' ]);
45
+ $ logger && $ logger ->info ('----> Set ZipCode via "xingLocation": ' . $ data ['xingLocation ' ]['postcode ' ]);
46
+ }
47
+ if (isset ($ data ['xingLocation ' ]['country_code ' ])) {
48
+ $ xingData ->setCountry ($ data ['xingLocation ' ]['country_code ' ]);
49
+ $ logger && $ logger ->info ('----> Set Country via "xingLocation": ' . $ data ['xingLocation ' ]['country_code ' ]);
50
+ }
51
+
52
+ return true ;
53
+ }
54
+
39
55
if (isset ($ data ['xingCity ' ])) {
40
56
$ xingData ->setCity ($ data ['xingCity ' ]);
41
57
You can’t perform that action at this time.
0 commit comments