Custom attributes are no longer working

Created on 9 May 2025, 23 days ago

After upgrading Drupal from 10.4.1 to 10.4.7, custom link attributes are no longer working.

I have defined two custom attributes in mymodule.link_attributes.yml. The hook_entity_base_field_info_alter() is implemented correctly. I’ve also implemented hook_module_implements_alter() to ensure that my custom module runs after link_attributes. The overridden menu Twig template uses these custom attributes. Everything was working fine until I upgraded Drupal to 10.4.7, which also updated twig/twig from v3.16.0 to v3.19.0.

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡¦πŸ‡²Armenia aram.gevorgyan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024