In Drupal 7, many modules did
variable_get($module_name, array()); and went from there.
In Drupal 8 it is not possible to have a config file without a dot in its name. This is arguably a regression considering above. And, it is silently ignored so you have no clue why it's not getting picked up.
Make it possible to have a config object named the same as an extension. AFAIK the only requirement towards a config object is that
explode('.', $name) is the module/theme name but that is kept.
To facilitate this,
validateName needs to get the list of extensions so that it can validate dotless names for this.
ConfigImporteralready reads the list of extensions., just need to expose.
Configread the list of extensions for dotless files.
- Remove delete from
onConfigImporterValidate(). There's no point in having such because it couldn't have gotten in without first being valid. Now, with the new system if you uninstall a module with the same name config then that will fail (tricky!).
- Possibly refactor the logic in
getNewExtensions()reads the extension lists on demand. Consider doing
- Bump this to beta blocker. Anyone porting a contrib which used this variable convention in D7 will have a bad time.
User interface changes
$module.yml becomes possible.