local token-tree-link template not being found

Created on 26 September 2024, about 2 months ago

Problem/Motivation

A local token-tree-link.html.twig file is not being picked up. Other templates are being picked up.

Steps to reproduce

Copy token-tree-link.html.twig from token template directory to our theme template directory.
Modify local copy (eg add a class) .
Clear cache.
Reload Form page which has token tree element:

    $form['xxxx']['token_help'] = array(
      '#theme' => 'token_tree_link',
      '#token_types' => array('comment', 'node', 'user', 'term'),
    );

Inspect page - 'modules/contrib/token/templates/token-tree-link.html.twig' is being used.

Proposed resolution

This could be down to the content of the '#theme' value in the code - but not sure how to get it to point to my version of the template.

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

1.15

Component

Code

Created by

🇬🇧United Kingdom Jons

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

Comments & Activities

Production build 0.71.5 2024