Language handling in tokens

Created on 17 April 2025, 12 days ago

Problem/Motivation

In the scheduler_content_moderation_integration_tokens() the code assumes the $options['language'] has a language property. In case it has not, a warning will be triggered.

Proposed resolution

Use the same approach as on the scheduler module.
e.g.
$language_code = $options['langcode'] ?? NULL;

In the core, I see the same langcode from options is used.
e.g. node_tokens

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇷🇴Romania bogdan.racz

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