Conditions | 6 |
Paths | 6 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function getChildMenuItems(MenuItem $item): string |
||
20 | { |
||
21 | $results = ''; |
||
22 | |||
23 | foreach ($item->getChilds() as $child) { |
||
24 | if ($child->isHidden()) { |
||
25 | continue; |
||
26 | } |
||
27 | |||
28 | if ($child->hasChilds()) { |
||
29 | $results .= $this->getMultiLevelDropdownWrapper($child); |
||
30 | } elseif ($child->isHeader()) { |
||
31 | $results .= $this->getHeaderWrapper($child); |
||
32 | } elseif ($child->isDivider()) { |
||
33 | $results .= $this->getDividerWrapper(); |
||
34 | } else { |
||
35 | $results .= $this->getMenuWithoutDropdownWrapper($child); |
||
36 | } |
||
37 | } |
||
38 | |||
39 | return $results; |
||
40 | } |
||
41 | } |
||
42 |