diff 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
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Theme/ThemeInitialization.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/core/lib/Drupal/Core/Theme/ThemeInitialization.php	Thu Feb 28 13:11:55 2019 +0000
@@ -173,6 +173,15 @@
     $values['path'] = $theme_path;
     $values['name'] = $theme->getName();
 
+    // Use the logo declared in this themes info file, otherwise use logo.svg
+    // from the themes root.
+    if (!empty($theme->info['logo'])) {
+      $values['logo'] = $theme->getPath() . '/' . $theme->info['logo'];
+    }
+    else {
+      $values['logo'] = $theme->getPath() . '/logo.svg';
+    }
+
     // @todo Remove in Drupal 9.0.x.
     $values['stylesheets_remove'] = $this->prepareStylesheetsRemove($theme, $base_themes);