You are here

function twig_theme in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/engines/twig/twig.engine \twig_theme()
  2. 9 core/themes/engines/twig/twig.engine \twig_theme()

Implements hook_theme().

File

core/themes/engines/twig/twig.engine, line 16
Handles integration of Twig templates with the Drupal theme system.

Code

function twig_theme($existing, $type, $theme, $path) {
  return drupal_find_theme_templates($existing, '.html.twig', $path);
}