Drupal 8 config files

Submitted by admin on Thu, 06/02/2020 - 22:01

Drupal 8 config files

By gradually diffing as I make changes I want to discover which yml files I'd need to "play in" building a site piece by piece. Whist I could just build a site and then export/import the entire package, I wanted to gain better understanding so that I could, in future, know to deploy some pieces but not others, or to be able to make changes just to the yml files and rebuild the site entirely.

1. Selecting a new theme instead of the default

The following yml files become relevant:

Only in yml/2-set-theme: block.block.bootstrap_barrio_account_menu.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_branding.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_breadcrumbs.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_content.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_footer.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_help.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_local_actions.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_local_tasks.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_main_menu.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_messages.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_page_title.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_powered.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_search.yml
Only in yml/2-set-theme: block.block.bootstrap_barrio_tools.yml
Only in yml/2-set-theme: block.block.edas19_account_menu.yml
Only in yml/2-set-theme: block.block.edas19_branding.yml
Only in yml/2-set-theme: block.block.edas19_breadcrumbs.yml
Only in yml/2-set-theme: block.block.edas19_content.yml
Only in yml/2-set-theme: block.block.edas19_footer.yml
Only in yml/2-set-theme: block.block.edas19_help.yml
Only in yml/2-set-theme: block.block.edas19_local_actions.yml
Only in yml/2-set-theme: block.block.edas19_local_tasks.yml
Only in yml/2-set-theme: block.block.edas19_main_menu.yml
Only in yml/2-set-theme: block.block.edas19_messages.yml
Only in yml/2-set-theme: block.block.edas19_page_title.yml
Only in yml/2-set-theme: block.block.edas19_powered.yml
Only in yml/2-set-theme: block.block.edas19_search.yml
Only in yml/2-set-theme: block.block.edas19_tools.yml
Only in yml/2-set-theme: bootstrap_barrio.settings.yml

This is a case of a base theme (bootstrap) and a customer theme ("edas19"). Different yml files would probably arise from different combinations of themes.

All important (and thus far I'd missed this) was selecting the default theme:

diff yml/1-original/core.extension.yml yml/2-set-theme/core.extension.yml
65a66,67
>   bootstrap_barrio: 0
>   edas19: 0
Only in yml/2-set-theme: edas19.settings.yml
diff yml/1-original/system.theme.yml yml/2-set-theme/system.theme.yml
2c2
< default: bartik
---
> default: edas19

definitely useful to know.