@@ -195,10 +195,10 @@ |
||
| 195 | 195 | $context['_parent'] = $context; |
| 196 | 196 | $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["entry"], "children", [], "any", false, false, false, 37)); |
| 197 | 197 | $context['loop'] = [ |
| 198 | - 'parent' => $context['_parent'], |
|
| 199 | - 'index0' => 0, |
|
| 200 | - 'index' => 1, |
|
| 201 | - 'first' => true, |
|
| 198 | + 'parent' => $context['_parent'], |
|
| 199 | + 'index0' => 0, |
|
| 200 | + 'index' => 1, |
|
| 201 | + 'first' => true, |
|
| 202 | 202 | ]; |
| 203 | 203 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 204 | 204 | $length = count($context['_seq']); |
@@ -56,10 +56,10 @@ |
||
| 56 | 56 | $context['_parent'] = $context; |
| 57 | 57 | $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) || array_key_exists("menus", $context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.', 4, $this->source); })())); |
| 58 | 58 | $context['loop'] = [ |
| 59 | - 'parent' => $context['_parent'], |
|
| 60 | - 'index0' => 0, |
|
| 61 | - 'index' => 1, |
|
| 62 | - 'first' => true, |
|
| 59 | + 'parent' => $context['_parent'], |
|
| 60 | + 'index0' => 0, |
|
| 61 | + 'index' => 1, |
|
| 62 | + 'first' => true, |
|
| 63 | 63 | ]; |
| 64 | 64 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 65 | 65 | $length = count($context['_seq']); |
@@ -56,10 +56,10 @@ |
||
| 56 | 56 | $context['_parent'] = $context; |
| 57 | 57 | $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) || array_key_exists("menus", $context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.', 4, $this->source); })())); |
| 58 | 58 | $context['loop'] = [ |
| 59 | - 'parent' => $context['_parent'], |
|
| 60 | - 'index0' => 0, |
|
| 61 | - 'index' => 1, |
|
| 62 | - 'first' => true, |
|
| 59 | + 'parent' => $context['_parent'], |
|
| 60 | + 'index0' => 0, |
|
| 61 | + 'index' => 1, |
|
| 62 | + 'first' => true, |
|
| 63 | 63 | ]; |
| 64 | 64 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 65 | 65 | $length = count($context['_seq']); |
@@ -56,10 +56,10 @@ |
||
| 56 | 56 | $context['_parent'] = $context; |
| 57 | 57 | $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) || array_key_exists("menus", $context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.', 4, $this->source); })())); |
| 58 | 58 | $context['loop'] = [ |
| 59 | - 'parent' => $context['_parent'], |
|
| 60 | - 'index0' => 0, |
|
| 61 | - 'index' => 1, |
|
| 62 | - 'first' => true, |
|
| 59 | + 'parent' => $context['_parent'], |
|
| 60 | + 'index0' => 0, |
|
| 61 | + 'index' => 1, |
|
| 62 | + 'first' => true, |
|
| 63 | 63 | ]; |
| 64 | 64 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 65 | 65 | $length = count($context['_seq']); |
@@ -195,10 +195,10 @@ |
||
| 195 | 195 | $context['_parent'] = $context; |
| 196 | 196 | $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["entry"], "children", [], "any", false, false, false, 37)); |
| 197 | 197 | $context['loop'] = [ |
| 198 | - 'parent' => $context['_parent'], |
|
| 199 | - 'index0' => 0, |
|
| 200 | - 'index' => 1, |
|
| 201 | - 'first' => true, |
|
| 198 | + 'parent' => $context['_parent'], |
|
| 199 | + 'index0' => 0, |
|
| 200 | + 'index' => 1, |
|
| 201 | + 'first' => true, |
|
| 202 | 202 | ]; |
| 203 | 203 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 204 | 204 | $length = count($context['_seq']); |
@@ -135,10 +135,10 @@ |
||
| 135 | 135 | $context['_parent'] = $context; |
| 136 | 136 | $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["entry"], "children", [], "any", false, false, false, 26)); |
| 137 | 137 | $context['loop'] = [ |
| 138 | - 'parent' => $context['_parent'], |
|
| 139 | - 'index0' => 0, |
|
| 140 | - 'index' => 1, |
|
| 141 | - 'first' => true, |
|
| 138 | + 'parent' => $context['_parent'], |
|
| 139 | + 'index0' => 0, |
|
| 140 | + 'index' => 1, |
|
| 141 | + 'first' => true, |
|
| 142 | 142 | ]; |
| 143 | 143 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { |
| 144 | 144 | $length = count($context['_seq']); |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | public function addTestItems(MenuEvent $event) |
| 21 | 21 | { |
| 22 | 22 | $event->prepend(function () { |
| 23 | - yield MenuItem::system('Prepended Item', 'test') ->setRouteParameter('name', 'test_menu'); |
|
| 23 | + yield MenuItem::system('Prepended Item', 'test') ->setRouteParameter('name', 'test_menu'); |
|
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | 26 | $event->append(function () { |
| 27 | - yield MenuItem::system('Appended Item', 'test') ->setRouteParameter('name', 'test_menu'); |
|
| 27 | + yield MenuItem::system('Appended Item', 'test') ->setRouteParameter('name', 'test_menu'); |
|
| 28 | 28 | }); |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |