service twig in Drupal 8
Same name and namespace in other branches
- 9 core/core.services.yml \twig
Class
Drupal\Core\Template\TwigEnvironmentTags
- service_collector
28 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.
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Template\TwigEnvironment
- arguments:
- - '@app.root'
- - '@cache.default'
- - '%twig_extension_hash%'
- - '@state'
- - '@twig.loader'
- - '%twig.config%'
- tags:
- - { name: service_collector, tag: twig.extension, call: addExtension }