Typehinting on color_field_tokens() is breaking case of client using square brackets for their podcast timestamps

Created on 2 August 2024, 8 months ago

Client has a podcast on a page, they also added a transcript of the podcast to the body field. In the transcript they are timestamping when people are talking like "Bob [23:23] - I think that's a great idea" but drupal interprets that as a token, and then runs through hook_tokens but the only one giving an error is this module because the implementation of hook_tokens is type-hinted, so we get "PHP message: Uncaught PHP Exception TypeError: "color_field_tokens(): Argument #1 ($type) must be of type string, int given, called in..."
- Need to create a patch to remove the type-hinting and match the example hook provided by the token module's api file.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada porchlight

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024