TokenTreeTable::formatRow can set an object as a value for rendering

Created on 17 August 2023, about 1 year ago
Updated 18 September 2024, about 2 months ago

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"

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine taraskorpach Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024