Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Theme/ActiveTheme.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
18 * @var string | 18 * @var string |
19 */ | 19 */ |
20 protected $name; | 20 protected $name; |
21 | 21 |
22 /** | 22 /** |
23 * The path to the logo. | |
24 * | |
25 * @var string | |
26 */ | |
27 protected $logo; | |
28 | |
29 /** | |
23 * The path to the theme. | 30 * The path to the theme. |
24 * | 31 * |
25 * @var string | 32 * @var string |
26 */ | 33 */ |
27 protected $path; | 34 protected $path; |
79 * The libraries or library assets overridden by the theme. | 86 * The libraries or library assets overridden by the theme. |
80 * | 87 * |
81 * @var array | 88 * @var array |
82 */ | 89 */ |
83 protected $librariesOverride; | 90 protected $librariesOverride; |
91 | |
92 /** | |
93 * The list of libraries-extend definitions. | |
94 * | |
95 * @var array | |
96 */ | |
97 protected $librariesExtend; | |
84 | 98 |
85 /** | 99 /** |
86 * Constructs an ActiveTheme object. | 100 * Constructs an ActiveTheme object. |
87 * | 101 * |
88 * @param array $values | 102 * @param array $values |
91 public function __construct(array $values) { | 105 public function __construct(array $values) { |
92 $values += [ | 106 $values += [ |
93 'path' => '', | 107 'path' => '', |
94 'engine' => 'twig', | 108 'engine' => 'twig', |
95 'owner' => 'twig', | 109 'owner' => 'twig', |
110 'logo' => '', | |
96 'stylesheets_remove' => [], | 111 'stylesheets_remove' => [], |
97 'libraries' => [], | 112 'libraries' => [], |
98 'extension' => 'html.twig', | 113 'extension' => 'html.twig', |
99 'base_themes' => [], | 114 'base_themes' => [], |
100 'regions' => [], | 115 'regions' => [], |
101 'libraries_override' => [], | 116 'libraries_override' => [], |
102 'libraries_extend' => [], | 117 'libraries_extend' => [], |
103 ]; | 118 ]; |
104 | 119 |
105 $this->name = $values['name']; | 120 $this->name = $values['name']; |
121 $this->logo = $values['logo']; | |
106 $this->path = $values['path']; | 122 $this->path = $values['path']; |
107 $this->engine = $values['engine']; | 123 $this->engine = $values['engine']; |
108 $this->owner = $values['owner']; | 124 $this->owner = $values['owner']; |
109 $this->styleSheetsRemove = $values['stylesheets_remove']; | 125 $this->styleSheetsRemove = $values['stylesheets_remove']; |
110 $this->libraries = $values['libraries']; | 126 $this->libraries = $values['libraries']; |
195 public function getBaseThemes() { | 211 public function getBaseThemes() { |
196 return $this->baseThemes; | 212 return $this->baseThemes; |
197 } | 213 } |
198 | 214 |
199 /** | 215 /** |
216 * Returns the logo provided by the theme. | |
217 * | |
218 * @return string | |
219 * The logo path. | |
220 */ | |
221 public function getLogo() { | |
222 return $this->logo; | |
223 } | |
224 | |
225 /** | |
200 * The regions used by the theme. | 226 * The regions used by the theme. |
201 * | 227 * |
202 * @return string[] | 228 * @return string[] |
203 * The list of region machine names supported by the theme. | 229 * The list of region machine names supported by the theme. |
204 * | 230 * |