By cilefen on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Issue links:
Description:
path_to_theme() and $theme_path from D7 have no equivalent in Drupal 8. The function active_theme_path(), accessible from a Twig template, was added to provide this information.
This will print the path of the active theme:
{{ active_theme_path() }}
Impacts:
Module developers
Themers