Change record status: 
Project: 
Introduced in branch: 
8.x
Introduced in version: 
8.0-alpha12
Description: 

Extensions provide the Configuration system with information about their configuration data in a config directory within the module root. Previously, default configuration for the module was supplied directly within this directory. However, this frequently caused confusion for module and theme developers, as it was not clear that updating this default configuration would have no effect on a site once the module was installed. To address this confusion, a new install subdirectory has been added within the config directory, and all default configuration is supplied within this subdirectory.

Before

A sample module config directory before the change:

core/modules/taxonomy/config:
-- entity.view_mode.taxonomy_term.full.yml  
-- taxonomy.settings.yml
-- views.view.taxonomy_term.yml
-- schema
---- taxonomy.schema.yml
---- taxonomy.views.schema.yml

After

The same directory after the change:

core/modules/taxonomy/config:
-- install
---- entity.view_mode.taxonomy_term.full.yml  
---- taxonomy.settings.yml
---- views.view.taxonomy_term.yml
-- schema
---- taxonomy.schema.yml
---- taxonomy.views.schema.yml

The directory names config/install and config/schema should never be hardcoded. Use \Drupal\Core\Config\InstallStorage::CONFIG_INSTALL_DIRECTORY and \Drupal\Core\Config\InstallStorage::CONFIG_SCHEMA_DIRECTORY, respectively.

Impacts: 
Module developers
Themers

Comments

Anonymous’s picture

"Introduced in version: 8.0-alpha12" - A11 is not out yet so how can this be?

rpayanm’s picture

It seems that they were wrong, in version: Alpha-11 works this way.

while(alive){learn();}