3 namespace Drupal\eu_cookie_compliance\Routing;
5 use Symfony\Component\Routing\Route;
8 * Defines dynamic routes.
10 class CheckIfEuCountryJs {
15 public function routes() {
17 if (\Drupal::moduleHandler()->moduleExists('smart_ip')) {
18 $routes['eu_cookie_compliance.check_if_eu_country_js'] = new Route(
19 '/eu-cookie-compliance-check',
21 '_controller' => '\Drupal\eu_cookie_compliance\Controller\CheckIfEuCountryJsController::content',
24 '_permission' => 'access content',