Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2301245: Entity system invokes non-existing theme hooks: "Theme hook $entity_type_id not found."
The entity_test*
entities do not use an entity #theme
template currently. Only their inner fields are rendered. This means that the entity theme template is not fully tested currently.
The parent issue removes the #theme
property from the render array from the respective EntityViewBuilder
.
We can (A) either revert that, add a template, and adjust tests accordingly, or (B) add a new test entity to explicitly test the entity template rendering only in an isolated way.
Comments