drupal-console
drupal-console copied to clipboard
base_field_override export from config:export:content:type given .yml.yml extension
Issue title
[ ISSUE-GROUP ] config:export:content:type
Problem/Motivation
When using config:export:content:type to export a content type with base_field_overrides such as title or promote, the YAML files created have .yml.yml
instead of just .yml
Details to include:
[glenada]$ drupal config:export:content:type <CONTENT_TYPE>
Exporting bundle <CONTENT_TYPE>
- modules/custom/<MODULE>/config/optional/node.type.<CONTENT_TYPE>.yml
- modules/custom/<MODULE>/config/optional/core.base_field_override.node.<CONTENT_TYPE>.promote.yml.yml
- modules/custom/<MODULE>/config/optional/core.base_field_override.node.<CONTENT_TYPE>.title.yml.yml
- modules/custom/<MODULE>/config/optional/field.field.node.<CONTENT_TYPE>.body.yml
- modules/custom/<MODULE>/config/optional/field.storage.node.body.yml
- modules/custom/<MODULE>/config/optional/core.entity_form_display.node.<CONTENT_TYPE>.default.yml
- modules/custom/<MODULE>/config/optional/core.entity_view_display.node.<CONTENT_TYPE>.default.yml
- modules/custom/<MODULE>/config/optional/core.entity_view_display.node.<CONTENT_TYPE>.teaser.yml
- modules/custom/<MODULE>/config/optional/core.entity_view_mode.node.teaser.yml
How to reproduce
- create a content type with a title override or promote override.
- run config:export:content:type on content type
Details to include:
- Drupal version 9.0.4
- Console version 1.9.5
Solution
Stop second .yml
extension from being added