Message causes any manage display screen to be rendered in the default theme

Created on 23 November 2024, 4 months ago

Problem/Motivation

This module causes any manage display screen for any entity type to be rendered in the default theme. This is because the renderer is called in the hook_entity_extra_field_info() implementation of message, which initializes the theme at a point where Drupal has not had a chance to determine the screen needs to be rendered in the admin theme.

Steps to reproduce

  1. Have a Drupal install with:
    • message
    • field UI
    • at least one node type
    • a separate admin theme
  2. Make sure you have a message template with at least one text/partial
  3. Go to the manage display screen for the node type
  4. See that it is rendered in the frontend/default theme, not the admin theme

Proposed resolution

Introduce a way to only get information about the available partials, without actually rendering them, and use it to produce the extra fields for the .

Remaining tasks

  • Create MR
  • Review
  • Merge

User interface changes

None (aside from solving the bug).

API changes

Introduce a new method on the message template entity to get partial info.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

1.6

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands eelkeblok Netherlands πŸ‡³πŸ‡±

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