Same name and namespace in other branches
  1. 10 core/core.services.yml \twig
  2. 9 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.
GetFilenameTest::testDrupalGetFilename in core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php
Tests that drupal_get_filename() works when the file is not in database.
HelpTopicTwig::create in core/modules/help_topics/src/HelpTopicTwig.php
Creates an instance of the plugin.
hook_render_template in core/lib/Drupal/Core/Render/theme.api.php
Render a template using the theme engine.

... 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 }