Download & Extend

Allow configurable default config directory

Project:Drupal core
Version:8.x-dev
Component:configuration system
Category:feature request
Priority:normal
Assigned:Xano
Status:needs review

Issue Summary

Currency 7.x-2.x uses external libraries with Yaml files that are used as configuration files. The idea was that in Drupal 8, these files could be used as default configuration. However, they are not located in ./path/to/module/config/, but instead in ./path/to/module/vendor/.... By adding a property to .info files, we can tell the system to look for config in a different directory.

Comments

#1

Status:active» needs review

Untested, without updated tests, but it shows what I mean.

AttachmentSizeStatusTest resultOperations
drupal_1928324_00.patch871 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Invalid PHP syntax in core/includes/config.inc.View details | Re-test

#2

Status:needs review» needs work

The last submitted patch, drupal_1928324_00.patch, failed testing.

#3

Status:needs work» needs review

I told you it was untested.

AttachmentSizeStatusTest resultOperations
drupal_1928324_01.patch872 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 52,239 pass(es).View details | Re-test

#4

An alternative would be to split up config_install_default_config() in a function that takes a directory and imports all config it finds in there. That may actually be better, because it imposes /config as a config directory on developers, because they will actually have to put in an effort to deviate from that.

nobody click here