The hook gin_theme_suggestions_views_view_field_alter seems to be useless

Created on 19 September 2025, 21 days ago

Problem/Motivation

The hook gin_theme_suggestions_views_view_field_alter prevents other modules from overriding the status field theme.
Furthermore, this hook does not seem useful, as theme suggestions are already handled by the Views module in Drupal\views\Plugin\views\field\FieldPluginBase::themeFunctions().

After removing it, the theme loads correctly.

Steps to reproduce

Try declaring a theme ‘views_view_field__MY_VIEW__status’ in a custom module.
The theme views_view_field__status declared by Gin systematically takes precedence.

Proposed resolution

Remove the hook from includes/theme.theme

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇫🇷France damien laguerre

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024