You are here

service twig.extension in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/core.services.yml \twig.extension

Class

Drupal\Core\Template\TwigExtension

Tags

  • twig.extension
3 string references to twig.extension
TwigExtensionPass::process in core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php
You can modify the container here before it is dumped to PHP code.
TwigExtensionTest::testsRenderEscapedZeroValue in core/modules/system/src/Tests/Theme/TwigExtensionTest.php
Tests output of integer and double 0 values of TwigExtension::escapeFilter().
TwigExtensionTest::testsRenderZeroValue in core/modules/system/src/Tests/Theme/TwigExtensionTest.php
Tests output of integer and double 0 values of TwigExtension->renderVar().

File

core/core.services.yml
core/core.services.yml

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