Theme Templates
theme_templatesList a Drupal theme's Twig templates with sizes, filtered by an optional name pattern, to inspect template files and their byte sizes.
Instructions
List a theme's Twig templates (*.html.twig) with sizes.
Walks the theme directory on the local docroot (symlinks skipped, nothing outside DRUPAL_ROOT reported). pattern is a case-insensitive substring matched against the template name — "node--", "views", "field" — to narrow the list. Returns docroot-relative paths and byte sizes, sorted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | ||
| theme_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||