@@ 15-19 (lines=5) @@ | ||
12 | foreach ($themeHandler->listInfo() as $themeName => $info) { |
|
13 | ||
14 | // Register twig routes as theme hooks. |
|
15 | if (isset($info->info['routes'])) { |
|
16 | foreach ($info->info['routes'] as $name => $route) { |
|
17 | $theme[$name] = ['variables' => ['graphql_arguments' => []]]; |
|
18 | } |
|
19 | } |
|
20 | ||
21 | // Register twig blocks as theme hooks. |
|
22 | if (isset($info->info['blocks'])) { |
|
@@ 22-26 (lines=5) @@ | ||
19 | } |
|
20 | ||
21 | // Register twig blocks as theme hooks. |
|
22 | if (isset($info->info['blocks'])) { |
|
23 | foreach ($info->info['blocks'] as $name => $block) { |
|
24 | $theme[$name] = ['variables' => ['graphql_arguments' => []]]; |
|
25 | } |
|
26 | } |
|
27 | ||
28 | } |
|
29 | return $theme; |