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 webiator GmbH on
Hey everyone,
I am working on a module that is supposed to make core menu link items fieldable so that we are able to create mega menus and what not quite easily.
So far I enabled field tabs doing this:
function mymodule_entity_type_build(array &$entity_types){
$entity_types['menu_link_content']->set('field_ui_base_route', 'entity.menu.edit_form');
}
Unfortunately that is not it. Apparently field bundle is missing when I try to create a field and also the "manage display" tab is not working. Is anyone willing to work with me on this? Or give me a hint on how to proceed? I am lost