src/component/Html/Navigation.php 1 location
|
@@ 106-110 (lines=5) @@
|
| 103 |
|
return false; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
foreach ($items as $item) { |
| 107 |
|
if (null !== $item->getParentId()) { |
| 108 |
|
$children[$item->getParentId()][] = $item; |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
// loop will be false if the root has no children (i.e., an empty menu!) |
| 113 |
|
$loop = !empty($children[$root_id]); |
src/module/Appearance/Menu/Navigation.php 1 location
|
@@ 26-30 (lines=5) @@
|
| 23 |
|
return false; |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
foreach ($items as $item) { |
| 27 |
|
if (null !== $item->getParentId()) { |
| 28 |
|
$children[$item->getParentId()][] = $item; |
| 29 |
|
} |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
// loop will be false if the root has no children (i.e., an empty menu!) |
| 33 |
|
$loop = !empty($children[$root_id]); |