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
DCD uses $config['content_directory']
this is an unusual pattern for two reasons. The configuration does not contain a 'default_content_deploy' name space. Further this is this variable is not configurable via the interface and no initial value is available in /config/install.
Proposed resolution
The use of 'content_directory' is similar to the system public path. It is set in code and the audience is the developer/devops. I therefore propose to use the same pattern to set the content directory:
$settings['default_content_deploy_content_directory'] = '../content';
Remaining tasks
Perhaps add a deprecation warning for the admin.
Comments
Comment #2
Sutharsan CreditAttribution: Sutharsan commentedComment #3
martin_klimaThank you for the idea and explanation. I like to learn how to do things better. Work in progress.
Comment #5
martin_klima