Closed (fixed)
Project:
GraphQL
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2025 at 12:27 UTC
Updated:
31 Aug 2025 at 19:14 UTC
Jump to comment: Most recent
Similar to #3525994: The menu_link_label data producer throws internal server error. the menu_link_description data producer is affected by Drupal core not beeing type safe.
Cast the return value of $link->getDescription() to string
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
daniel.bosenComment #4
klausiThanks, I think we need to expand the test coverage to test with string and TranslatableMarkup for the description.
Comment #5
daniel.bosenTranslatableMarkup seems not to be usable for the description of MenuLinkContent entities. I ended up just adding a test for NULL.
Comment #7
klausiThanks, merged!