Verified Commit bd6acd2f authored by Dave Long's avatar Dave Long
Browse files

Issue #3457863 by grimreaper, catch, pdureau, maboy, longwave: YAML discovery...

Issue #3457863 by grimreaper, catch, pdureau, maboy, longwave: YAML discovery does not take theme inheritance into account

(cherry picked from commit 5e0ff5a8)
parent 730dc82c
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -69,8 +69,10 @@ public function listInfo() {
      $this->list = [];
      $installed_themes = $this->configFactory->get('core.extension')->get('theme');
      if (!empty($installed_themes)) {
        $installed_themes = array_intersect_key($this->themeList->getList(), $installed_themes);
        array_map([$this, 'addTheme'], $installed_themes);
        $list = $this->themeList->getList();
        foreach (array_keys($installed_themes) as $theme_name) {
          $this->addTheme($list[$theme_name]);
        }
      }
    }
    return $this->list;
+4 −0
Original line number Diff line number Diff line
name: 'Theme test child theme'
type: theme
version: VERSION
base theme: test_parent_theme
+3 −0
Original line number Diff line number Diff line
theme_parent_provided_layout:
  class: '\Drupal\Core\Layout\LayoutDefault'
  label: Child
+4 −0
Original line number Diff line number Diff line
name: 'Theme test parent theme'
type: theme
version: VERSION
base theme: false
+3 −0
Original line number Diff line number Diff line
theme_parent_provided_layout:
  class: '\Drupal\Core\Layout\LayoutDefault'
  label: Parent
Loading