twig

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

Class

Drupal\Core\Template\TwigEnvironment

Tags

  • service_collector
40 string references to twig
ActiveTheme::__construct in core/lib/Drupal/Core/Theme/ActiveTheme.php
Constructs an ActiveTheme object.
ComponentPluginManager::alterDefinition in core/modules/sdc/src/ComponentPluginManager.php
Alters the plugin definition with computed properties.
ComponentPluginManager::alterDefinition in core/lib/Drupal/Core/Theme/ComponentPluginManager.php
Alters the plugin definition with computed properties.
core.services.yml in core/core.services.yml
core/core.services.yml
default.services.yml in sites/default/default.services.yml
sites/default/default.services.yml

... See full list

File

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 }

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