moduleExists('smart_ip')) { $routes['eu_cookie_compliance.check_if_eu_country_js'] = new Route( '/eu-cookie-compliance-check', [ '_controller' => '\Drupal\eu_cookie_compliance\Controller\CheckIfEuCountryJsController::content', ], [ '_permission' => 'access content', ] ); } return $routes; } }