twig_theme

twig_theme($existing, $type, $theme, $path)

Implements hook_theme().

File

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

Code

function twig_theme($existing, $type, $theme, $path) {
  $templates = drupal_find_theme_functions($existing, array($theme));
  $templates += drupal_find_theme_templates($existing, '.html.twig', $path);
  return $templates;
}
doc_Drupal
2016-10-29 09:49:50
Comments
Leave a Comment

Please login to continue.