3 namespace Drupal\Core\Theme;
6 * Exception to be thrown when base theme for installed theme is not installed.
8 * @see \Drupal\Core\Theme\ThemeInitialization::getActiveThemeByName().
10 class MissingThemeDependencyException extends \Exception {
13 * The missing theme dependency.
20 * Constructs the exception.
22 * @param string $message
23 * The exception message.
24 * @param string $theme
25 * The missing theme dependency.
27 public function __construct($message, $theme) {
28 parent::__construct($message);
29 $this->theme = $theme;
33 * Gets the machine name of the missing theme.
36 * The machine name of the theme that is missing.
38 public function getMissingThemeName() {