function twig_extension
Implements hook_extension().
3 calls to twig_extension()
- TwigDebugMarkupTest::testTwigDebugMarkup in core/modules/ system/ tests/ src/ Functional/ Theme/ TwigDebugMarkupTest.php 
- Tests debug markup added to Twig template output.
- TwigSettingsTest::testTwigCacheOverride in core/modules/ system/ tests/ src/ Functional/ 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 25 
Code
function twig_extension() {
  return '.html.twig';
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
