development.services.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Local development services.
  2. #
  3. # To activate this feature, follow the instructions at the top of the
  4. # 'example.settings.local.php' file, which sits next to this file.
  5. parameters:
  6. twig.config:
  7. # Twig debugging:
  8. #
  9. # When debugging is enabled:
  10. # - The markup of each Twig template is surrounded by HTML comments that
  11. # contain theming information, such as template file name suggestions.
  12. # - Note that this debugging markup will cause automated tests that directly
  13. # check rendered HTML to fail. When running automated tests, 'debug'
  14. # should be set to FALSE.
  15. # - The dump() function can be used in Twig templates to output information
  16. # about template variables.
  17. # - Twig templates are automatically recompiled whenever the source code
  18. # changes (see auto_reload below).
  19. #
  20. # For more information about debugging Twig templates, see
  21. # https://www.drupal.org/node/1906392.
  22. #
  23. # Not recommended in production environments
  24. # @default false
  25. debug: true
  26. # Twig auto-reload:
  27. #
  28. # Automatically recompile Twig templates whenever the source code changes.
  29. # If you don't provide a value for auto_reload, it will be determined
  30. # based on the value of debug.
  31. #
  32. # Not recommended in production environments
  33. # @default null
  34. auto_reload: null
  35. # Twig cache:
  36. #
  37. # By default, Twig templates will be compiled and stored in the filesystem
  38. # to increase performance. Disabling the Twig cache will recompile the
  39. # templates from source each time they are used. In most cases the
  40. # auto_reload setting above should be enabled rather than disabling the
  41. # Twig cache.
  42. #
  43. # Not recommended in production environments
  44. # @default true
  45. cache: false
  46. # Cacheability debugging:
  47. #
  48. # Responses with cacheability metadata (CacheableResponseInterface instances)
  49. # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
  50. #
  51. # For more information about debugging cacheable responses, see
  52. # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
  53. #
  54. # Not recommended in production environments
  55. # @default false
  56. http.response.debug_cacheability_headers: true
  57. services:
  58. cache.backend.null:
  59. class: Drupal\Core\Cache\NullBackendFactory