Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
twig.engine
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
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'
; }