Warning: Undefined array key 'langcode' in node_singles_tokens()

Created on 30 June 2023, over 1 year ago

Problem/Motivation

In some contexts when using node_singles tokens, the following warning is triggered:

Warning: Undefined array key "langcode" in node_singles_tokens() (line 64 of modules/contrib/node_singles/node_singles.tokens.inc).
node_singles_tokens('node_singles', Array, Array, Array, Object) (Line: 76)

Proposed resolution

$options['langcode'] is not required, so let's add a fallback.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024