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.
Problem/Motivation
A follow up to this issue: #2384675: Deprecate conf_path()
drupal_install_config_directories()
tries to determine the config paths using string literals, like this:
if (empty($config_directories[CONFIG_ACTIVE_DIRECTORY])) {
$settings['config_directories'][CONFIG_ACTIVE_DIRECTORY] = (object) [
'value' => \Drupal::service('site.path') . '/files/config_' . $config_directories_hash . '/active',
'required' => TRUE,
];
}
Which is fine except that the user can change the public://
directory in settings.php
, and it might not be sites/files/
.
Comments
Comment #9
quietone CreditAttribution: quietone as a volunteer commenteddrupal_install_config_directories was deprecated in Drupal 8.8.0, #2980712: Define config directory in settings
Closing as outdated.