Block admin page token help text provides wrong token

Created on 6 March 2025, about 1 month ago

Problem/Motivation

When on the block layout edit page for my block I get a token that is structured [block_token:ctools_block:block_name] but when I am editing content and look at the token replacement pattern the actual (working) token is [block_token:system:block_name].

Steps to reproduce

Edit a block on the edit page and check the token string provided.
Then edit a piece of content with a text filter that allows for block token replacements and check the replacement patterns.
Notice the difference.

Proposed resolution

Remove the help text on the block admin page since it is providing wrong information. The replacement patterns is right where the editors need it so this should be enough for them to work with.

Remaining tasks

Remove the block form admin code found here: https://git.drupalcode.org/project/block_token/-/blob/8.x-1.x/block_toke...

User interface changes

Removes incorrect help text.

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ccjjmartin Austin, TX

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

Comments & Activities

Production build 0.71.5 2024