1

I noticed that default.settings.php files gets copied to scaffold folder:

Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php

Why is it copying this file to scaffold and what is it the purpose of this?

2
  • 2
    So that boilerplate files stay updated with Drupal core releases (they do sometimes change) and or are replaced if they are deleted by mistake. You can configure this behavior in composer.json.
    – Kevin
    Jun 17 at 17:48
  • 1
    github.com/drupal/core-composer-scaffold explains itself.
    – cilefen
    Jun 17 at 18:56

1 Answer 1

2

The purpose of scaffolding files is to allow Drupal sites to be fully managed by Composer, and still allow individual asset files to be placed in arbitrary locations.

From: https://github.com/drupal/core-composer-scaffold

The reason that default.settings.php is copied across is that this file is not part of the Drupal core (the contents of /web/core), nor is it part of a module, theme, or distribution. But it's part of a base Drupal installation, so Composer copies it to the correct location upon install.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.