Move the 'menu_link_content' 'link' base field widget overwrite into its own submodule

Issue information

From user: grevil

Related to !10 (merged)

Contribution record

Fork management

Problem/Motivation

Currently, if this module is enabled, the "link" base field widget of "menu_link_content" is automatically overwritten. Since this module is incompatible with other modules modifying the link specifically for menu items / links (e.g. https://www.drupal.org/project/menu_link_attributes), it would be nice to make this overwrite operation optional.

To do so, I suggest moving the hook containing the overwrite, in its own submodule.

Steps to reproduce

Proposed resolution

Move "link_attributes_entity_base_field_info_alter()" in its own submodule "link_attributes_menu_link".

Remaining tasks

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information