You are here

twig_tweak.services.yml in Twig Tweak 3.1.x

File

twig_tweak.services.yml
View source
  1. services:
  2. twig_tweak.twig_extension:
  3. class: Drupal\twig_tweak\TwigTweakExtension
  4. arguments: ['@module_handler', '@theme.manager']
  5. tags:
  6. - { name: twig.extension }
  7. twig_tweak.block_view_builder:
  8. class: Drupal\twig_tweak\View\BlockViewBuilder
  9. arguments: ['@plugin.manager.block', '@context.repository', '@context.handler', '@current_user', '@request_stack', '@current_route_match', '@title_resolver']
  10. twig_tweak.region_view_builder:
  11. class: Drupal\twig_tweak\View\RegionViewBuilder
  12. arguments: ['@entity_type.manager', '@config.factory', '@request_stack', '@title_resolver']
  13. twig_tweak.entity_view_builder:
  14. class: Drupal\twig_tweak\View\EntityViewBuilder
  15. arguments: ['@entity_type.manager']
  16. twig_tweak.entity_form_view_builder:
  17. class: Drupal\twig_tweak\View\EntityFormViewBuilder
  18. arguments: ['@entity.form_builder']
  19. twig_tweak.field_view_builder:
  20. class: Drupal\twig_tweak\View\FieldViewBuilder
  21. arguments: ['@entity.repository']
  22. twig_tweak.menu_view_builder:
  23. class: Drupal\twig_tweak\View\MenuViewBuilder
  24. arguments: ['@menu.link_tree']
  25. twig_tweak.image_view_builder:
  26. class: Drupal\twig_tweak\View\ImageViewBuilder
  27. twig_tweak.url_extractor:
  28. class: Drupal\twig_tweak\UrlExtractor
  29. arguments: ['@entity_type.manager']
  30. twig_tweak.uri_extractor:
  31. class: Drupal\twig_tweak\UriExtractor
  32. arguments: ['@entity_type.manager']
  33. twig_tweak.cache_metadata_extractor:
  34. class: Drupal\twig_tweak\CacheMetadataExtractor