public function shouldExcludeRoute($routeName, Route $route) { $exclude = parent::shouldExcludeRoute($routeName, $route); $module = $route->getDefault('_zkModule'); if (!$exclude && $module !== null && isset($GLOBALS['translation_extract_routes_bundle'])) { return $module !== $GLOBALS['translation_extract_routes_bundle']; } return $exclude; }
public function shouldExcludeRoute($routeName, Route $route) { $shouldExclude = parent::shouldExcludeRoute($routeName, $route); if ($shouldExclude) { return true; } // automatically exclude if the route is a unifik backend one if (preg_match('/unifik_[a-zA-Z0-9-_]*backend_/', $routeName)) { return true; } return false; }