You are here

function twig_init in Drupal 8

Same name and namespace in other branches
  1. 9 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 34
Handles integration of Twig templates with the Drupal theme system.

Code

function twig_init(Extension $theme) {
  $theme
    ->load();
}