Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / eu_cookie_compliance / src / Controller / CheckIfEuCountryJsController.php
index a27b55a2504bd674309c9cac396a5d1e43a53a5f..2d91f6f0d65a689412cd00f055930ff8c545680a 100644 (file)
@@ -15,6 +15,10 @@ class CheckIfEuCountryJsController extends ControllerBase {
    */
   public function content() {
     $data = eu_cookie_compliance_user_in_eu();
+
+    // Allow other modules to alter the geo IP matching logic.
+    \Drupal::moduleHandler()->alter('eu_cookie_compliance_geoip_match', $data);
+
     return new JsonResponse($data, 200, ['Cache-Control' => 'private']);
   }