function twig_extension in Drupal 9
Same name and namespace in other branches
- 8 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 25 - Handles integration of Twig templates with the Drupal theme system.
Code
function twig_extension() {
return '.html.twig';
}