Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21DrupalKer...
> If a file named sites.php is present in the sites directory, it will be loaded prior to scanning for directories.
This used to be the case on 7.x, but that's wrong now.
// Determine whether multi-site functionality is enabled.
if (!file_exists($app_root . '/sites/sites.php')) {
return 'sites/default';
}
If a file named sites.php is NOT present, then directories are not scanned for at all!
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-findsitepath-2905111-3.patch | 1.54 KB | bdlangton |
Comments
Comment #3
bdlangton CreditAttribution: bdlangton commentedHere is a patch that updates the documentation for DrupalKernel::findSitePath().
Comment #4
joachim CreditAttribution: joachim as a volunteer commentedLooks good to me. Thanks!
Comment #5
alexpottCrediting @joachim for creating this issue.
Comment #6
alexpottCommitted and pushed c98f167c5c to 8.6.x and 1c73bf45bc to 8.5.x. Thanks!
Backporting to 8.5.x since it is a docs fix.
Comment #10
roderik