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.
Problem/Motivation
Controller override the defalut behaviour of setting of bundle field value of menu_link_content entity.
Proposed resolution
Remove related row.
Remaining tasks
- Remove related row.
- Replace usage entityManager by entityTypeManager in controller.
User interface changes
No changes. Bundle field value predefined in Drupal\menu_link_content\Entity\MenuLinkContent::preCreate();
method. So the user will see the same entity create form.
API changes
No changes.
Data model changes
No changes.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2923429-5.patch | 921 bytes | Dinesh18 |
#5 | interdiff.txt | 647 bytes | Dinesh18 |
menu_link_content-remove_predefined_bundle_value_in_controller--01-8.4.x.patch | 961 bytes | voleger | |
Comments
Comment #3
Wim LeersComment #4
alexpottIf we're cleaning this up I think we can we also remove these too? I'm not sure what use they are the parent and id don't need to be empty strings to create a menu link.
Comment #5
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedI agree with @alexpott, we should clean the parent and id as well.
Here is the updated patch and interdiff.txt
Comment #6
volegerTests pass and the patch looks good to me.
+1 for RTBC
Comment #7
alexpottCommitted 4ee92a7 and pushed to 8.7.x. Thanks!
As a task only committed to 8.7.x