function twig_theme

Implements hook_theme().

File

core/themes/engines/twig/twig.engine, line 15

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.