Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By larowlan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0-alpha15
Issue links:
Description:
In previous versions of Drupal 8 view mode and form modes were provided by the Entity module.
This meant config files were named entity.view_mode.{entity_type}.{id}.yml and entity.form_mode.{entity_type}.{id}.yml.
This meant the entity module was always required.
#2031717: Make entity module not required moved these to the core namespace allowing the entity module to be non-required.
As part of this the config IDs changed as follows
Form modes
- modules/mymodule/config/install/entity.form_mode.my_entitytype.my_form_mode.yml
+ modules/mymodule/config/install/core.entity_form_mode.my_entitytype.my_form_mode.yml
View modes
- modules/mymodule/config/install/entity.view_mode.my_entitytype.my_view_mode.yml
+ modules/mymodule/config/install/core.entity_view_mode.my_entitytype.my_view_mode.yml
Impacts:
Site builders, administrators, editors
Module developers