- Issue created by @andrewbelcher
- 🇨🇭Switzerland berdir Switzerland
Just cross-referencing things, I did run into the same error, but for me, ✨ SDC ComponentElement: Transform slots TranslatableMarkup values to #markup instead of throwing an exception Active helps because it's a TranslatableMarkup object, not null.
I assume SDC has optional slots, but I think this is a navigation issue. I think an label should either fall back to some fallback string like "- No label -" or possibly skip the whole plugin as it can't really provide meaningful information?
- 🇨🇦Canada m4olivei Grimsby, ON
Good find. Tagging as Needs test, it's not obvious how to reproduce it. I was able to reproduce it in a very hacky way by adding the following implementation of
label()
to\Drupal\node\Entity\Node
, just to illustrate the issue:/** * {@inheritdoc} */ public function label() { return NULL; }
IMO, the plugin should be skipped if there isn't a useful title or badge. We skip the badge, avoiding this issue if there isn't one. We should do the same for the label.
- Merge request !11390Issue #3505182: Avoid rendering a label in the top bar if its NULL → (Open) created by m4olivei