function Drupal::theme
Same name and namespace in other branches
- 11.x core/lib/Drupal.php \Drupal::theme()
- 10 core/lib/Drupal.php \Drupal::theme()
- 9 core/lib/Drupal.php \Drupal::theme()
- 8.9.x core/lib/Drupal.php \Drupal::theme()
Gets the theme service.
Return value
\Drupal\Core\Theme\ThemeManagerInterface The theme manager service.
1 call to Drupal::theme()
- ViewExecutable::render in core/
modules/ views/ src/ ViewExecutable.php - Renders this view for a certain display.
File
-
core/
lib/ Drupal.php, line 667
Class
- Drupal
- Static Service Container wrapper.
Code
public static function theme() {
return static::getContainer()->get('theme.manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.