Compatibility with other modules, options being overwritten.

Issue information

From user: kmetz

Related to !8 (merged)

Contribution record

Fork management

Problem/Motivation

The contrib module menu_firstchild or any other module that provides menu link options do not work when menu_link_attributes is enabled. It can't store link options for menu items, as they are overwritten by menu_link_attributes.

Steps to reproduce

  • Enable menu_firstchild or other module that provides menu link options.
  • Enable menu_link_attributes.
  • Create a custom menu item, check the "firstchild" checkbox in the create/edit form.
  • Revisit the form for the menu item: the "firstchild" checkbox has unchecked itself.

Proposed resolution

Merge options with existing link options in menu_link_attributes_menu_link_content_form_entity_builder().

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