function twig_extension

Implements hook_extension().

3 calls to twig_extension()
TwigDebugMarkupTest::testTwigDebugMarkup in drupal/core/modules/system/lib/Drupal/system/Tests/Theme/TwigDebugMarkupTest.php
Tests debug markup added to Twig template output.
TwigSettingsTest::testTwigCacheOverride in drupal/core/modules/system/lib/Drupal/system/Tests/Theme/TwigSettingsTest.php
Ensures Twig template cache setting can be overridden.
twig_render_template in drupal/core/themes/engines/twig/twig.engine
Renders a Twig template.

File

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

Code

function twig_extension() {
  return '.html.twig';
}