Theme hook token_tree not found.

Created on 17 March 2022, over 2 years ago
Updated 20 May 2024, about 1 month ago

Problem/Motivation

Theme hook token_tree not found. message when viewing manage form displays.

Steps to reproduce

Edit the form display for the image. Check the logs.

Proposed resolution

    if (\Drupal::moduleHandler()->moduleExists('token')) {
      $return['source_attach']['tokens'] = [
        '#theme' => 'token_tree',
        '#token_types' => ['user'],
      ];
    }

needs to be 'token_tree_link'
See:
#2640138: Use token_tree_link instead of token_tree to render links β†’

Proposed resolution

Let's fix it.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

General

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024