Use .twig files registered with no .html.twig extension

Created on 14 April 2025, 14 days ago

Problem/Motivation

Components is already discovering and registering Twig templates with only a .twig file name suffix. That is, without a .html.twig suffix.

Its just when a component is requested from Drupal, Drupal will always append .html.twig no matter what is registered as a theme_hook.

Proposed resolution

Also check registry for entries with only .twig suffix, when a .html.twig request falls through.

Remaining tasks

Feature, coverage.

User interface changes

Nil.

API changes

Additions, no breaks.

Data model changes

Nil.

Feature request
Status

Active

Version

3.1

Component

Code

Created by

🇦🇺Australia dpi Perth, Australia

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