example.settings.local.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. // phpcs:ignoreFile
  3. /**
  4. * @file
  5. * Local development override configuration feature.
  6. *
  7. * To activate this feature, copy and rename it such that its path plus
  8. * filename is 'sites/default/settings.local.php'. Then, go to the bottom of
  9. * 'sites/default/settings.php' and uncomment the commented lines that mention
  10. * 'settings.local.php'.
  11. *
  12. * If you are using a site name in the path, such as 'sites/example.com', copy
  13. * this file to 'sites/example.com/settings.local.php', and uncomment the lines
  14. * at the bottom of 'sites/example.com/settings.php'.
  15. */
  16. /**
  17. * Assertions.
  18. *
  19. * The Drupal project primarily uses runtime assertions to enforce the
  20. * expectations of the API by failing when incorrect calls are made by code
  21. * under development.
  22. *
  23. * @see http://php.net/assert
  24. * @see https://www.drupal.org/node/2492225
  25. *
  26. * It is strongly recommended that you set zend.assertions=1 in the PHP.ini file
  27. * (It cannot be changed from .htaccess or runtime) on development machines and
  28. * to 0 or -1 in production.
  29. */
  30. /**
  31. * Enable local development services.
  32. */
  33. $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
  34. /**
  35. * Show all error messages, with backtrace information.
  36. *
  37. * In case the error level could not be fetched from the database, as for
  38. * example the database connection failed, we rely only on this value.
  39. */
  40. $config['system.logging']['error_level'] = 'verbose';
  41. /**
  42. * Disable CSS and JS aggregation.
  43. */
  44. $config['system.performance']['css']['preprocess'] = FALSE;
  45. $config['system.performance']['js']['preprocess'] = FALSE;
  46. /**
  47. * Disable the render cache.
  48. *
  49. * Note: you should test with the render cache enabled, to ensure the correct
  50. * cacheability metadata is present. However, in the early stages of
  51. * development, you may want to disable it.
  52. *
  53. * This setting disables the render cache by using the Null cache back-end
  54. * defined by the development.services.yml file above.
  55. *
  56. * Only use this setting once the site has been installed.
  57. */
  58. # $settings['cache']['bins']['render'] = 'cache.backend.null';
  59. /**
  60. * Disable caching for migrations.
  61. *
  62. * Uncomment the code below to only store migrations in memory and not in the
  63. * database. This makes it easier to develop custom migrations.
  64. */
  65. # $settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
  66. /**
  67. * Disable Internal Page Cache.
  68. *
  69. * Note: you should test with Internal Page Cache enabled, to ensure the correct
  70. * cacheability metadata is present. However, in the early stages of
  71. * development, you may want to disable it.
  72. *
  73. * This setting disables the page cache by using the Null cache back-end
  74. * defined by the development.services.yml file above.
  75. *
  76. * Only use this setting once the site has been installed.
  77. */
  78. # $settings['cache']['bins']['page'] = 'cache.backend.null';
  79. /**
  80. * Disable Dynamic Page Cache.
  81. *
  82. * Note: you should test with Dynamic Page Cache enabled, to ensure the correct
  83. * cacheability metadata is present (and hence the expected behavior). However,
  84. * in the early stages of development, you may want to disable it.
  85. */
  86. # $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
  87. /**
  88. * Allow test modules and themes to be installed.
  89. *
  90. * Drupal ignores test modules and themes by default for performance reasons.
  91. * During development it can be useful to install test extensions for debugging
  92. * purposes.
  93. */
  94. # $settings['extension_discovery_scan_tests'] = TRUE;
  95. /**
  96. * Enable access to rebuild.php.
  97. *
  98. * This setting can be enabled to allow Drupal's php and database cached
  99. * storage to be cleared via the rebuild.php page. Access to this page can also
  100. * be gained by generating a query string from rebuild_token_calculator.sh and
  101. * using these parameters in a request to rebuild.php.
  102. */
  103. $settings['rebuild_access'] = TRUE;
  104. /**
  105. * Skip file system permissions hardening.
  106. *
  107. * The system module will periodically check the permissions of your site's
  108. * site directory to ensure that it is not writable by the website user. For
  109. * sites that are managed with a version control system, this can cause problems
  110. * when files in that directory such as settings.php are updated, because the
  111. * user pulling in the changes won't have permissions to modify files in the
  112. * directory.
  113. */
  114. $settings['skip_permissions_hardening'] = TRUE;
  115. /**
  116. * Exclude modules from configuration synchronization.
  117. *
  118. * On config export sync, no config or dependent config of any excluded module
  119. * is exported. On config import sync, any config of any installed excluded
  120. * module is ignored. In the exported configuration, it will be as if the
  121. * excluded module had never been installed. When syncing configuration, if an
  122. * excluded module is already installed, it will not be uninstalled by the
  123. * configuration synchronization, and dependent configuration will remain
  124. * intact. This affects only configuration synchronization; single import and
  125. * export of configuration are not affected.
  126. *
  127. * Drupal does not validate or sanity check the list of excluded modules. For
  128. * instance, it is your own responsibility to never exclude required modules,
  129. * because it would mean that the exported configuration can not be imported
  130. * anymore.
  131. *
  132. * This is an advanced feature and using it means opting out of some of the
  133. * guarantees the configuration synchronization provides. It is not recommended
  134. * to use this feature with modules that affect Drupal in a major way such as
  135. * the language or field module.
  136. */
  137. # $settings['config_exclude_modules'] = ['devel', 'stage_file_proxy'];