Core themes incorrectly categorized as contrib in hook_requirements()

Created on 14 August 2025, about 6 hours ago

Problem/Motivation

When using a core theme as a base theme, the module incorrectly categorizes core themes (e.g., Claro) as contrib themes in its requirements check, leading to false warnings about contrib themes providing field.html.twig templates.

Steps to reproduce

  1. Install Fences module
  2. Create a custom theme that extends a core theme (e.g., base theme: claro)
  3. Check Drupal's status report
  4. Observe that core themes appear in the "contrib themes" warning list

Proposed resolution

Reverse the logic to first collect base themes, then filter out core themes.

🐛 Bug report
Status

Active

Version

3.0

Component

Code (fences)

Created by

🇨🇦Canada brunodbo

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