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.
Comments
"Introduced in version: 8.0
"Introduced in version: 8.0-alpha12" - A11 is not out yet so how can this be?
In A11 its working
It seems that they were wrong, in version: Alpha-11 works this way.
while(alive){learn();}