You are here

public static function Bootstrap::getThemeHandler in Express 8

Retrieves the theme handler instance.

Return value

\Drupal\Core\Extension\ThemeHandlerInterface The theme handler instance.

2 calls to Bootstrap::getThemeHandler()
Bootstrap::getTheme in themes/contrib/bootstrap/src/Bootstrap.php
Retrieves a theme instance of \Drupal\bootstrap.
Theme::__wakeup in themes/contrib/bootstrap/src/Theme.php
Unserialize method.

File

themes/contrib/bootstrap/src/Bootstrap.php, line 491
Contains \Drupal\bootstrap\Bootstrap.

Class

Bootstrap
The primary class for the Drupal Bootstrap base theme.

Namespace

Drupal\bootstrap

Code

public static function getThemeHandler() {
  static $theme_handler;
  if (!isset($theme_handler)) {
    $theme_handler = \Drupal::service('theme_handler');
  }
  return $theme_handler;
}