function MissingThemeDependencyException::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php \Drupal\Core\Theme\MissingThemeDependencyException::__construct()
  2. 10 core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php \Drupal\Core\Theme\MissingThemeDependencyException::__construct()
  3. 11.x core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php \Drupal\Core\Theme\MissingThemeDependencyException::__construct()

Constructs the exception.

Parameters

string $message: The exception message.

string $theme: The missing theme dependency.

File

core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php, line 27

Class

MissingThemeDependencyException
Exception to be thrown when base theme for installed theme is not installed.

Namespace

Drupal\Core\Theme

Code

public function __construct($message, $theme) {
    parent::__construct($message);
    $this->theme = $theme;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.