function twig_extension in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/themes/engines/twig/twig.engine \twig_extension()
Implements hook_extension().
3 calls to twig_extension()
- TwigDebugMarkupTest::testTwigDebugMarkup in core/
modules/ system/ src/ Tests/ Theme/ TwigDebugMarkupTest.php - Tests debug markup added to Twig template output.
- TwigSettingsTest::testTwigCacheOverride in core/
modules/ system/ src/ Tests/ Theme/ TwigSettingsTest.php - Ensures Twig template cache setting can be overridden.
- twig_render_template in core/
themes/ engines/ twig/ twig.engine - Implements hook_render_template().
File
- core/
themes/ engines/ twig/ twig.engine, line 24 - Handles integration of Twig templates with the Drupal theme system.
Code
function twig_extension() {
return '.html.twig';
}