| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 38 | public function getThemeHierarchy(ThemeInterface $theme) |
||
| 39 | { |
||
| 40 | $parents = []; |
||
| 41 | $parentsSlugs = $theme->getParentsSlugs(); |
||
| 42 | foreach ($parentsSlugs as $parentName) { |
||
| 43 | $parents = array_merge( |
||
| 44 | $parents, |
||
| 45 | $this->getThemeHierarchy($this->getTheme($parentName)) |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | |||
| 49 | return array_merge([$theme], $parents); |
||
| 50 | } |
||
| 51 | |||
| 70 |