src/component/Html/Navigation.php 1 location
|
@@ 355-359 (lines=5) @@
|
| 352 |
|
return false; |
| 353 |
|
} |
| 354 |
|
|
| 355 |
|
foreach ($items as $item) { |
| 356 |
|
if (null !== $item->getParentId()) { |
| 357 |
|
$children[$item->getParentId()][] = $item; |
| 358 |
|
} |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
// loop will be false if the root has no children (i.e., an empty menu!) |
| 362 |
|
$loop = !empty($children[$root_id]); |
src/module/Appearance/Menu/Navigation.php 1 location
|
@@ 141-145 (lines=5) @@
|
| 138 |
|
return false; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
foreach ($items as $item) { |
| 142 |
|
if (null !== $item->getParentId()) { |
| 143 |
|
$children[$item->getParentId()][] = $item; |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// loop will be false if the root has no children (i.e., an empty menu!) |
| 148 |
|
$loop = !empty($children[$root_id]); |