Problem/Motivation
When I attempt to navigate to the page at "block/12/devel/token", I encounter the error "Exception: Object of type Drupal\block_content\Entity\BlockContentType cannot be printed.". I observed a similar issue with the ShortcutSet entity, receiving the error: "Exception: Object of type Drupal\shortcut\Entity\ShortcutSet cannot be printed".
From the notes I've gathered:
The issue seems to arise because the token [shortcut:shortcut_set:entity] returns the ShortcutSet entity as a value. Naturally, this entity cannot be rendered.
Steps to reproduce
1. Install the "Devel" module
2. Go to the entity page like "entity/entityId/devel/token"
Comments
Comment #2
taraskorpachI've added a very simple patch, just for my needs, I hope someone will fix it or just improve the patch, tia.
Comment #3
s3b0un3tHello,
I meet the same message with "paragraphs_library_item" entity type on URL "/devel/token/paragraphs_library_item/{id}":
"Exception: Object of type Drupal\paragraphs\Entity\ParagraphsType cannot be printed".It try to generate a token "[paragraphs_library_item:paragraphs:entity:type:entity]" as EntityType object.
Your patch seems to fix my issue. It's not perfect but the page loaded correctly.
Thanks !