twig.extension

Same name in other branches
  1. 9 core/core.services.yml \twig.extension
  2. 8.9.x core/core.services.yml \twig.extension

Class

Drupal\Core\Template\TwigExtension

Tags

  • twig.extension
4 string references to twig.extension
TwigExtensionPass::process in core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php
TwigExtensionTest::testRenderStrategies in core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
Test if Drupal html strategy is done and the fallback to Twig itself works.
TwigExtensionTest::testsRenderEscapedZeroValue in core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
Tests output of integer and double 0 values of TwigExtension::escapeFilter().
TwigExtensionTest::testsRenderZeroValue in core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
Tests output of integer and double 0 values of TwigExtension->renderVar().

File

core/core.services.yml

View source
  1. class: Drupal\Core\Template\TwigExtension
  2. arguments:
  3. - '@renderer'
  4. - '@url_generator'
  5. - '@theme.manager'
  6. - '@date.formatter'
  7. - '@file_url_generator'
  8. tags:
  9. - { name: twig.extension, priority: 100 }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.