Extension/Theme/PathProvider/ThemePathProvider.php
protected function getThemesHierarchy($themeName)
    {
        $hierarchy = [];

        while (null !== $themeName) {
            $theme = $this->themeManager->getTheme($themeName);

            $hierarchy[] = $theme;
            $themeName   = $theme->getParentTheme();
        }

        return array_reverse($hierarchy);
    }
protected function getThemesHierarchy($themeName)
    {
        $hierarchy = [];

        while (null !== $themeName) {
            $theme = $this->themeManager->getTheme($themeName);

            $hierarchy[] = $theme;
            $themeName   = $theme->getParentTheme();
        }

        return array_reverse($hierarchy);
    }
protected function getThemesHierarchy ( $ themeName ) { $ hierarchy = [ ] ; while ( null !== $ themeName ) { $ theme = $ this -> themeManager -> getTheme ( $ themeName ) ; $ hierarchy [ ] = $ theme ; $ themeName = $ theme -> getParentTheme ( ) ; } return array_reverse ( $ hierarchy ) ; }
Returns theme inheritance hierarchy with root theme as first item

@param string $themeName

@return Theme[]
Returns theme inheritance hierarchy with root theme as first item