function twig_init in Drupal 9
Same name and namespace in other branches
- 8 core/themes/engines/twig/twig.engine \twig_init()
Includes .theme file from themes.
Parameters
\Drupal\Core\Extension\Extension $theme: The theme extension object.
File
- core/
themes/ engines/ twig/ twig.engine, line 35 - Handles integration of Twig templates with the Drupal theme system.
Code
function twig_init(Extension $theme) {
$theme
->load();
}