protected function RouteHelper::getThemeRoutes in Theme Compiler 8
Same name and namespace in other branches
- 2.0.x src/Routing/RouteHelper.php \Drupal\theme_compiler\Routing\RouteHelper::getThemeRoutes()
Generate a list of routes for a specific theme's compiler configuration.
Parameters
string $theme: The machine name of the theme for which routes should be generated.
array $compilers: An associative array of compiler target configurations keyed by the desired theme compiler's plugin identifier.
Return value
\Symfony\Component\Routing\Route[] A collection of routes for the provided theme's compiler configuration.
1 call to RouteHelper::getThemeRoutes()
- RouteHelper::routes in src/
Routing/ RouteHelper.php - Generate a list of routes for all applicable theme compiler configurations.
File
- src/
Routing/ RouteHelper.php, line 114
Class
- RouteHelper
- Builds the dynamic routes provided by this theme.
Namespace
Drupal\theme_compiler\RoutingCode
protected function getThemeRoutes(string $theme, array $compilers) {
foreach ($compilers as $compiler => $targets) {
yield from $this
->getThemeCompilerRoutes($theme, $compiler, $targets);
}
}