comparison core/lib/Drupal/Core/Theme/ThemeInitialization.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children 12f9dff5fda9
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
171 $theme_path = $theme->getPath(); 171 $theme_path = $theme->getPath();
172 172
173 $values['path'] = $theme_path; 173 $values['path'] = $theme_path;
174 $values['name'] = $theme->getName(); 174 $values['name'] = $theme->getName();
175 175
176 // Use the logo declared in this themes info file, otherwise use logo.svg
177 // from the themes root.
178 if (!empty($theme->info['logo'])) {
179 $values['logo'] = $theme->getPath() . '/' . $theme->info['logo'];
180 }
181 else {
182 $values['logo'] = $theme->getPath() . '/logo.svg';
183 }
184
176 // @todo Remove in Drupal 9.0.x. 185 // @todo Remove in Drupal 9.0.x.
177 $values['stylesheets_remove'] = $this->prepareStylesheetsRemove($theme, $base_themes); 186 $values['stylesheets_remove'] = $this->prepareStylesheetsRemove($theme, $base_themes);
178 187
179 // Prepare libraries overrides from this theme and ancestor themes. This 188 // Prepare libraries overrides from this theme and ancestor themes. This
180 // allows child themes to easily remove CSS files from base themes and 189 // allows child themes to easily remove CSS files from base themes and