You are here

service twig in Drupal 9

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

Class

Drupal\Core\Template\TwigEnvironment

Tags

  • service_collector
31 string references to twig
ActiveTheme::__construct in core/lib/Drupal/Core/Theme/ActiveTheme.php
Constructs an ActiveTheme object.
ExtensionDiscoveryTest::testExtensionDiscoveryVfs in core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php
Tests extension discovery in a virtual filesystem with vfsStream.
ExtensionPathResolverTest::testExtensionPathResolving in core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php
@covers ::getPathname
FrontMatterTest::createTwigTemplate in core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php
Creates a new temporary Twig file.
FrontMatterTest::setUp in core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php

... See full list

File

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

View source
  1. class: Drupal\Core\Template\TwigEnvironment
  2. arguments:
  3. - '%app.root%'
  4. - '@cache.default'
  5. - '%twig_extension_hash%'
  6. - '@state'
  7. - '@twig.loader'
  8. - '%twig.config%'
  9. tags:
  10. - { name: service_collector, tag: twig.extension, call: addExtension }