By davidhernandez on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Issue links:
Description:
$current_theme from Drupal 7 has no equivalent in Drupal 8. The function active_theme(), accessible from a Twig template, was added to provide this information.
This will print the name of the active theme:
{{ active_theme() }}
Impacts:
Themers