Remove misleading Config page [config_pages] tokens

Created on 13 September 2024, 7 months ago

Problem/Motivation

If you check the token browser we got both the Config page [config_pages] tokens, representing the entity types, which won't substitute any value, and the ConfigPages [config_page] tokens, representing the individual configs holding the values.

If possible, I would remove the first one, so to not waste time and create confusion on the site builder.

Probably with something like this? I'm not an expert..

function config_pages_token_info_alter(&$info) {
  unset($info['config_page']);
}
📌 Task
Status

Active

Version

2.0

Component

User interface

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Production build 0.71.5 2024