function public static function Bootstrap::getThemeHandler

8.x-3.x Bootstrap.php public static Bootstrap::getThemeHandler()

Retrieves the theme handler instance.

Return value

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

Class

Bootstrap
The primary class for the Drupal Bootstrap base theme.

Namespace

Drupal\bootstrap

Source src/Bootstrap.php (line 668)

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