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.
Issue fork node_singles-3371532
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dieterholvoet commented