Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Theme / ActiveTheme.php
index e94fbd77cce9c0acc62cccca70e7b4e1635ae232..b7076fb6bdefc61dfbaa1530c6be24f92a50acf9 100644 (file)
@@ -19,6 +19,13 @@ class ActiveTheme {
    */
   protected $name;
 
+  /**
+   * The path to the logo.
+   *
+   * @var string
+   */
+  protected $logo;
+
   /**
    * The path to the theme.
    *
@@ -82,6 +89,13 @@ class ActiveTheme {
    */
   protected $librariesOverride;
 
+  /**
+   * The list of libraries-extend definitions.
+   *
+   * @var array
+   */
+  protected $librariesExtend;
+
   /**
    * Constructs an ActiveTheme object.
    *
@@ -93,6 +107,7 @@ class ActiveTheme {
       'path' => '',
       'engine' => 'twig',
       'owner' => 'twig',
+      'logo' => '',
       'stylesheets_remove' => [],
       'libraries' => [],
       'extension' => 'html.twig',
@@ -103,6 +118,7 @@ class ActiveTheme {
     ];
 
     $this->name = $values['name'];
+    $this->logo = $values['logo'];
     $this->path = $values['path'];
     $this->engine = $values['engine'];
     $this->owner = $values['owner'];
@@ -196,6 +212,16 @@ class ActiveTheme {
     return $this->baseThemes;
   }
 
+  /**
+   * Returns the logo provided by the theme.
+   *
+   * @return string
+   *   The logo path.
+   */
+  public function getLogo() {
+    return $this->logo;
+  }
+
   /**
    * The regions used by the theme.
    *