Calendar module ignores field style settings because it bypasses ViewsRow plugin theme
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3537950. --> Reported by: [joelpittet](https://www.drupal.org/user/160302) Related to !63 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In Drupal 10, the Calendar Views style and row plugins bypass <code>views_view_fields</code>, rendering every event field directly. The default plugin theme <code>views_view_row_calendar</code> isn&rsquo;t implemented, so custom field templates never apply&mdash;and early population of <code>#rendered_fields</code> makes overrides difficult.</p> <p>This how it was done in D7: <a href="https://git.drupalcode.org/project/calendar/-/blob/7.x-3.x/includes/calendar.views.inc?ref_type=heads#L67">https://git.drupalcode.org/project/calendar/-/blob/7.x-3.x/includes/calendar.views.inc?ref_type=heads#L67</a></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Create a Calendar view display with event fields in Drupal 10+ and add wrapper or field styles on the fields in the Views UI.</li> <li>Inspect the rendered output&mdash;observe that all fields are output without rendering the field styles through <code>views-view-fields.html.twig</code> templates.</li> <li>Check the render array in the Views style plugin; note <code>#theme</code> points to <code>views_view_row_calendar</code> with no corresponding template or hook_theme registration.</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ol> <li>Override the Views Row Plugin&rsquo;s <code>$usesFields</code> to <code>TRUE</code>.</li> <li>Change <code>themeFunctions()</code> in the row plugin to return <code>['views_view_fields']</code> instead of <code>views_view_row_calendar</code>.</li> <li>Ensure we call the ViewsRow plugin's <code>::themeFunctions()</code> through to the template to render the template.</li> <li>Try not to break BC in the templates (EEK)</li> </ol>
issue