Theme Template Overrides
theme_template_overridesIdentify which Drupal core or module Twig templates a theme overrides and which are theme-original, returning paths and a scanned file count. Requires DRUPAL_ROOT.
Instructions
Which core/module templates a theme overrides, and which it invented.
For every Twig file in the theme, the docroot is indexed once for files with the same name outside that theme; a match means the theme's copy wins at render time (an override), no match means a theme-original template. Returns both lists with paths, plus how many Twig files were scanned. Requires DRUPAL_ROOT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||