8.5.x Drupal.php Drupal::theme()
8.0.x Drupal.php Drupal::theme()
8.1.x Drupal.php Drupal::theme()
8.2.x Drupal.php Drupal::theme()
8.3.x Drupal.php Drupal::theme()
8.4.x Drupal.php Drupal::theme()
8.6.x Drupal.php Drupal::theme()

Gets the theme service.

Return value

\Drupal\Core\Theme\ThemeManagerInterface

File

core/lib/Drupal.php, line 646
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function theme() {
  return static::getContainer()
    ->get('theme.manager');
}