function twig_extension

Same name in other branches
  1. 9 core/themes/engines/twig/twig.engine \twig_extension()
  2. 10 core/themes/engines/twig/twig.engine \twig_extension()
  3. 11.x core/themes/engines/twig/twig.engine \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 24

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.