Support more field formatters

Created on 29 March 2025, 4 days ago

Problem/Motivation

I'd like to use a computed token field to build a shortcode, and then display it as a copy-to-clipboard button.

The first part works fine. I can use the entity ID token to populate the field. But the formatters provided by ClipboardJS module aren't available for the display of the field.

Proposed resolution

I suspect that the underlying problem is that those field formatters specify which types of fields they are valid for (eg. string, email, etc.) I guess computed token fields are not presenting as one of those field types.

I suspect there's some kind of info_alter() hook that might give us a chance to inject our field types.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦

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

Comments & Activities

Production build 0.71.5 2024