You are here

service twig in Zircon Profile 8.0

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

Class

Drupal\Core\Template\TwigEnvironment

Tags

  • service_collector
23 string references to twig
ActiveTheme::__construct in core/lib/Drupal/Core/Theme/ActiveTheme.php
Constructs an ActiveTheme object.
GetFilenameUnitTest::testDrupalGetFilename in core/modules/system/src/Tests/Bootstrap/GetFilenameUnitTest.php
Tests that drupal_get_filename() works when the file is not in database.
hook_render_template in core/lib/Drupal/Core/Render/theme.api.php
Render a template using the theme engine.
HtaccessTest::getProtectedFiles in core/modules/system/src/Tests/System/HtaccessTest.php
Get an array of file paths for access testing.
InlineTemplate::preRenderInlineTemplate in core/lib/Drupal/Core/Render/Element/InlineTemplate.php
Renders a twig string directly.

... 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. - '@twig.loader'
  7. - '%twig.config%'
  8. tags:
  9. - { name: service_collector, tag: twig.extension, call: addExtension }