View Template Info
view_template_infoRetrieve verified template names for overriding a Drupal Views display; validates view and display IDs against the site and lists available suggestions.
Instructions
Template names for overriding a Views display, verified against the site.
Looks the view up in the JSON:API view collection by its machine id (drupal_internal__id), so the display list is real: with display_id the chain starts at views-view--NAME--DISPLAY and falls back to the whole view; without it every display gets an entry, then the views-view base template. An unknown view errors with the views the site has, an unknown display_id with the displays that view has, and suggestions are marked in_checked_theme when the default theme's templates can be read (DRUPAL_ROOT). Views config changed names between Drupal generations (view.* on older sites, views.view.* on Drupal 11.4+), so the collection — addressed by entity id — is the stable source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_name | Yes | ||
| display_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||