function twig_extension
Same name and namespace in other branches
- 10 core/themes/engines/twig/twig.engine \twig_extension()
- 11.x core/themes/engines/twig/twig.engine \twig_extension()
- 9 core/themes/engines/twig/twig.engine \twig_extension()
- 8.9.x core/themes/engines/twig/twig.engine \twig_extension()
Implements hook_extension().
1 call to twig_extension()
- 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() : string {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use TwigThemeEngine instead. See https://www.drupal.org/node/3547356', E_USER_DEPRECATED);
return '.html.twig';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.