Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Theme; | |
4 | |
5 /** | |
6 * Exception to be thrown when base theme for installed theme is not installed. | |
7 * | |
8 * @see \Drupal\Core\Theme\ThemeInitialization::getActiveThemeByName(). | |
9 */ | |
10 class MissingThemeDependencyException extends \Exception { | |
11 | |
12 /** | |
13 * The missing theme dependency. | |
14 * | |
15 * @var string | |
16 */ | |
17 protected $theme; | |
18 | |
19 /** | |
20 * Constructs the exception. | |
21 * | |
22 * @param string $message | |
23 * The exception message. | |
24 * @param string $theme | |
25 * The missing theme dependency. | |
26 */ | |
27 public function __construct($message, $theme) { | |
28 parent::__construct($message); | |
29 $this->theme = $theme; | |
30 } | |
31 | |
32 /** | |
33 * Gets the machine name of the missing theme. | |
34 * | |
35 * @return string | |
36 * The machine name of the theme that is missing. | |
37 */ | |
38 public function getMissingThemeName() { | |
39 return $this->theme; | |
40 } | |
41 | |
42 } |