Support for external entities with theme suggestions

Created on 26 November 2024, 2 months ago

Problem/Motivation

When using a template for a specific external entity type, field groups won't be rendered. The patch introduced in Support for external entities only fixed this for templates without a theme suggestion.

Steps to reproduce

  1. Configure an external entity type my_object
  2. Add a field group to its full view mode
  3. When displaying a my_object using the generic external-entity template, the field group is rendered.
  4. When displaying a my_object using a template with a theme suggestion external-entity--my-object--full, the field group is not rendered.

Proposed resolution

When injecting field_group_build_entity_groups in all entity theming functions, also look for external_entity as a base hook.

Remaining tasks

💬 Support request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇩🇪Germany rob_pr

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