Problem/Motivation
Layout Discovery allow themes to declare layouts and Field Layout allow display modes to use theme-defined layouts. The thing is that if you use a theme-defined layout then export the display mode configuration, the theme is going to be in the dependencies of the config object under the "module" key.
Steps to reproduce
- Install Drupal standard profile
- Enable Field Layout
- Copy core/modules/system/tests/modules/layout_test/layout_test.layouts.yml to core/themes/bartik/bartik.layouts.yml
- Copy core/modules/system/tests/modules/layout_test/templates to core/themes/bartik/templates
- Rebuild caches
- Go to admin/structure/types/manage/article/display and set the layout to one the those in the "Layout test" category
- Save and export configuration
Expected: the theme is in the dependencies.theme section of the core.entity_view_display.node.article.default.yml file
Current: the theme is in the dependencies.module section of the core.entity_view_display.node.article.default.yml file
Proposed resolution
TBD
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Create a patch | Instructions | ||
Add automated tests | Instructions | ||
Add steps to reproduce the issue | Novice | Instructions | Done |
User interface changes
None.
API changes
None.
Data model changes
None.