Default theme implementations

  1. 7.x drupal/modules/system/theme.api.php themeable
  2. 5.x drupal/includes/theme.inc themeable
  3. 6.x drupal/includes/theme.inc themeable
  4. 8.x drupal/core/modules/system/theme.api.php themeable

Functions and templates for the user interface that themes can override.

Drupal's theme system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup. For this system to work, modules, instead of writing HTML markup directly, need to return "render arrays", which are structured hierarchical arrays that include the data to be rendered into HTML (or XML or another output format), and options that affect the markup. Render arrays are ultimately rendered into HTML or other output formats by recursive calls to drupal_render(), traversing the depth of the render array hierarchy. At each level, the theme system is invoked to do the actual rendering. See the documentation of drupal_render() and the Theme system and Render API topic for more information about render arrays and rendering.

Theme Hooks The theme system is invoked in

drupal_render() by calling the internal _theme() function, which operates on the concept of "theme hooks". Theme hooks define how a particular type of data should be rendered. They are registered by modules by implenting hook_theme(), which specifies the name of the hook, the input "variables" used to provide data and options, and other information. Modules implementing hook_theme() also need to provide a default implementation for each of their theme hooks, normally in a Twig file, and they may also provide preprocessing functions. For example, the core Search module defines a theme hook for a search result item in search_theme():

return array(
  'search_result' => array(
    'variables' => array(
      'result' => NULL,
      'plugin_id' => NULL,
    ),
   'file' => 'search.pages.inc',
   'template' => 'search-result',
  ),
);

Given this definition, the template file with the default implementation is search-result.html.twig, which can be found in the core/modules/search/templates directory, and the variables for rendering are the search result and the plugin ID. In addition, there is a function template_preprocess_search_result(), located in file search.pages.inc, which preprocesses the information from the input variables so that it can be rendered by the Twig template; the processed variables that the Twig template receives are documented in the header of the default Twig template file.

hook_theme() implementations can also specify that a theme hook implementation is a theme function, but that is uncommon. It is only used for special cases, for performance reasons, because rendering using theme functions is somewhat faster than theme templates.

Overriding Theme Hooks

Themes may register new theme hooks within a hook_theme() implementation, but it is more common for themes to override default implementations provided by modules than to register entirely new theme hooks. Themes can override a default implementation by creating a template file with the same name as the default implementation; for example, to override the display of search results, a theme would add a file called search-result.html.twig to its templates directory. A good starting point for doing this is normally to copy the default implementation template, and then modifying it as desired.

In the uncommon case that a theme hook uses a theme function instead of a template file, a module would provide a default implementation function called theme_HOOK, where HOOK is the name of the theme hook (for example, theme_search_result() would be the name of the function for search result theming). In this case, a theme can override the default implentation by defining a function called THEME_HOOK() in its THEME.theme file, where THEME is the machine name of the theme (for example, 'bartik' is the machine name of the core Bartik theme, and it would define a function called bartik_search_result() in the bartik.theme file, if the search_result hook implementation was a function instead of a template). Normally, copying the default function is again a good starting point for overriding its behavior.

Preprocessing for Template Files

If the theme implementation is a template file, several functions are called before the template file is invoked to modify the variables that are passed to the template. These make up the "preprocessing" phase, and are executed (if they exist), in the following order (note that in the following list, HOOK indicates the theme hook name, MODULE indicates a module name, THEME indicates a theme name, and ENGINE indicates a theme engine name). Modules, themes, and theme engines can provide these functions to modify how the data is preprocessed, before it is passed to the theme template:

  • template_preprocess(&$variables, $hook): Creates a default set of variables for all theme hooks with template implementations. Provided by Drupal Core.
  • template_preprocess_HOOK(&$variables): Should be implemented by the module that registers the theme hook, to set up default variables.
  • MODULE_preprocess(&$variables, $hook): hook_preprocess() is invoked on all implementing modules.
  • MODULE_preprocess_HOOK(&$variables): hook_preprocess_HOOK() is invoked on all implementing modules, so that modules that didn't define the theme hook can alter the variables.
  • ENGINE_engine_preprocess(&$variables, $hook): Allows the theme engine to set necessary variables for all theme hooks with template implementations.
  • ENGINE_engine_preprocess_HOOK(&$variables): Allows the theme engine to set necessary variables for the particular theme hook.
  • THEME_preprocess(&$variables, $hook): Allows the theme to set necessary variables for all theme hooks with template implementations.
  • THEME_preprocess_HOOK(&$variables): Allows the theme to set necessary variables specific to the particular theme hook.

Preprocessing for Theme Functions

If the theming implementation is a function, only the theme-hook-specific preprocess functions (the ones ending in _HOOK) are called from the list above. This is because theme hooks with function implementations need to be fast, and calling the non-theme-hook-specific preprocess functions for them would incur a noticeable performance penalty.

Theme hook suggestions

In some cases, instead of calling the base theme hook implementation (either the default provided by the module that defined the hook, or the override provided by the theme), the theme system will instead look for "suggestions" of other hook names to look for. Suggestions can be specified in several ways:

  • In a render array, the '#theme' property (which gives the name of the hook to use) can be an array of theme hook names instead of a single hook name. In this case, the render system will look first for the highest-priority hook name, and if no implementation is found, look for the second, and so on. Note that the highest-priority suggestion is at the end of the array.
  • In a render array, the '#theme' property can be set to the name of a hook with a '__SUGGESTION' suffix. For example, in search results theming, the hook 'item_list__search_results' is given. In this case, the render system will look for theme templates called item-list--search-results.html.twig, which would only be used for rendering item lists containing search results, and if this template is not found, it will fall back to using the base item-list.html.twig template. This type of suggestion can also be combined with providing an array of theme hook names as described above.
  • A module can implement hook_theme_suggestions_HOOK(). This allows the module that defines the theme template to dynamically return an array containing specific theme hook names (presumably with '__' suffixes as defined above) to use as suggestions. For example, the Search module does this in search_theme_suggestions_search_result() to suggest search_result__PLUGIN as the theme hook for search result items, where PLUGIN is the machine name of the particular search plugin type that was used for the search (such as node_search or user_search).

Altering theme hook suggestions

Modules can also alter the theme suggestions provided using the mechanisms of the previous section. There are two hooks for this: the theme-hook-specific hook_theme_suggestions_HOOK_alter() and the generic hook_theme_suggestions_alter(). These hooks get the current list of suggestions as input, and can change this array (adding suggestions and removing them).

End of "defgroup themeable".

See also

Hooks

Callbacks

Functions

Namesort descending Location Description
drupal_pre_render_table drupal/core/includes/theme.inc #pre_render callback to transform children of an element into #rows suitable for theme_table().
template_preprocess_container drupal/core/includes/theme.inc Prepares variables for container templates.
template_preprocess_datetime drupal/core/includes/theme.inc Preprocess variables for theme_datetime().
template_preprocess_feed_icon drupal/core/includes/theme.inc Prepares variables for feed icon templates.
template_preprocess_image drupal/core/includes/theme.inc Prepares variables for image templates.
template_preprocess_item_list drupal/core/includes/theme.inc Prepares variables for item list templates.
template_preprocess_links drupal/core/includes/theme.inc Prepares variables for links templates.
template_preprocess_status_messages drupal/core/includes/theme.inc Prepares variables for status message templates.
template_preprocess_table drupal/core/includes/theme.inc Prepares variables for table templates.
template_preprocess_tablesort_indicator drupal/core/includes/theme.inc Prepares variables for tablesort indicator templates.
theme_aggregator_page_opml drupal/core/modules/aggregator/aggregator.theme.inc Prints the OPML page for the feed.
theme_authorize_message drupal/core/includes/theme.maintenance.inc Returns HTML for a single log message from the authorize.php batch operation.
theme_authorize_report drupal/core/includes/theme.maintenance.inc Returns HTML for a results report of an operation run by authorize.php.
theme_book_admin_table drupal/core/modules/book/book.admin.inc Returns HTML for a book administration form.
theme_book_link drupal/core/modules/book/book.module Returns HTML for a book link and subtree.
theme_field_ui_table drupal/core/modules/field_ui/field_ui.module Returns HTML for Field UI overview tables.
theme_image_style_effects drupal/core/modules/image/image.admin.inc Returns HTML for a listing of the effects within a specific image style.
theme_indentation drupal/core/includes/theme.inc Returns HTML for an indentation div; used for drag and drop tables.
theme_language_negotiation_configure_browser_form_table drupal/core/modules/language/language.admin.inc Theme browser configuration form as table.
theme_locale_translate_edit_form_strings drupal/core/modules/locale/locale.pages.inc Returns HTML for translation edit form.
theme_menu_link drupal/core/includes/menu.inc Returns HTML for a menu link and submenu.
theme_menu_local_action drupal/core/includes/menu.inc Returns HTML for a single local action link.
theme_menu_local_task drupal/core/includes/menu.inc Returns HTML for a single local task link.
theme_menu_local_tasks drupal/core/includes/menu.inc Returns HTML for primary and secondary local tasks.
theme_menu_overview_form drupal/core/modules/menu_ui/menu_ui.admin.inc Returns HTML for the menu overview form into a table.
theme_menu_tree drupal/core/includes/menu.inc Returns HTML for a wrapper for a menu sub-tree.
theme_more_link drupal/core/includes/theme.inc Returns HTML for a "more" link, like those used in blocks.
theme_node_search_admin drupal/core/modules/node/node.module Returns HTML for the content ranking part of the search settings admin page.
theme_responsive_image drupal/core/modules/responsive_image/responsive_image.module Returns HTML for a responsive image.
theme_responsive_image_formatter drupal/core/modules/responsive_image/responsive_image.module Returns HTML for a responsive image field formatter.
theme_responsive_image_source drupal/core/modules/responsive_image/responsive_image.module Returns HTML for a source tag.
theme_system_compact_link drupal/core/modules/system/system.module Returns HTML for a link to show or hide inline help descriptions.
theme_system_modules_details drupal/core/modules/system/system.admin.inc Returns HTML for the modules form.
theme_system_modules_uninstall drupal/core/modules/system/system.admin.inc Returns HTML for a table of currently disabled modules.
theme_tableselect drupal/core/includes/form.inc Returns HTML for a table with radio buttons or checkboxes.
theme_task_list drupal/core/includes/theme.maintenance.inc Returns HTML for a list of maintenance tasks to perform.
theme_update_report drupal/core/modules/update/update.report.inc Returns HTML for the project status report.
theme_update_status_label drupal/core/modules/update/update.report.inc Returns HTML for a label to display for a project's update status.
theme_update_version drupal/core/modules/update/update.report.inc Returns HTML for the version display of a project.

Files

Namesort descending Location Description
admin-block-content.html.twig drupal/core/modules/system/templates/admin-block-content.html.twig Default theme implementation for the content of an administrative block.
admin-block.html.twig drupal/core/modules/system/templates/admin-block.html.twig Default theme implementation for an administrative block.
admin-page.html.twig drupal/core/modules/system/templates/admin-page.html.twig Default theme implementation for an administrative page.
aggregator-block-item.html.twig drupal/core/modules/aggregator/templates/aggregator-block-item.html.twig Default theme implementation for feed item for display in the block.
aggregator-feed-source.html.twig drupal/core/modules/aggregator/templates/aggregator-feed-source.html.twig Default theme implementation to present the source of the feed.
aggregator-item.html.twig drupal/core/modules/aggregator/templates/aggregator-item.html.twig Default theme implementation to present a feed item in an aggregator page.
aggregator-summary-item.html.twig drupal/core/modules/aggregator/templates/aggregator-summary-item.html.twig Default theme implementation for a single feed in a list of feed items.
aggregator-summary-items.html.twig drupal/core/modules/aggregator/templates/aggregator-summary-items.html.twig Default theme implementation to present feeds as list items.
block--system-branding-block.html.twig drupal/core/modules/system/templates/block--system-branding-block.html.twig Default theme implementation for a branding block.
block-content-add-list.html.twig drupal/core/modules/block_content/templates/block-content-add-list.html.twig Default theme implementation to present a list of custom block types.
block-list.html.twig drupal/core/modules/block/templates/block-list.html.twig Two column template for the block add/edit form.
block.html.twig drupal/core/modules/block/templates/block.html.twig Default theme implementation to display a block.
book-all-books-block.html.twig drupal/core/modules/book/templates/book-all-books-block.html.twig Default theme implementation for rendering book outlines within a block.
book-export-html.html.twig drupal/core/modules/book/templates/book-export-html.html.twig Default theme implementation for printed version of book outline.
book-navigation.html.twig drupal/core/modules/book/templates/book-navigation.html.twig Default theme implementation to navigate books.
book-node-export-html.html.twig drupal/core/modules/book/templates/book-node-export-html.html.twig Default theme implementation for a single node in a printer-friendly outline.
book-tree.html.twig drupal/core/modules/book/templates/book-tree.html.twig Default theme implementation for a book tree.
breadcrumb.html.twig drupal/core/modules/system/templates/breadcrumb.html.twig Default theme implementation for a breadcrumb trail.
checkboxes.html.twig drupal/core/modules/system/templates/checkboxes.html.twig Default theme implementation for a 'checkboxes' #type form element.
ckeditor-settings-toolbar.html.twig drupal/core/modules/ckeditor/templates/ckeditor-settings-toolbar.html.twig Default theme implementation for the CKEditor settings toolbar.
color-scheme-form.html.twig drupal/core/modules/color/templates/color-scheme-form.html.twig Default theme implementation for a theme's color form.
comment.html.twig drupal/core/modules/comment/templates/comment.html.twig Default theme implementation for comments.
common-test-foo.html.twig drupal/core/modules/system/tests/modules/common_test/templates/common-test-foo.html.twig Default theme implementation for the common test foo.
config_translation_manage_form_element.html.twig drupal/core/modules/config_translation/templates/config_translation_manage_form_element.html.twig Default theme implementation for a form element in config_translation.
confirm-form.html.twig drupal/core/modules/system/templates/confirm-form.html.twig Default theme implementation for confirm form.
container.html.twig drupal/core/modules/system/templates/container.html.twig Default theme implementation of a container used to wrap child elements.
datetime-form.html.twig drupal/core/modules/datetime/templates/datetime-form.html.twig Default theme implementation of a datetime form element.
datetime-wrapper.html.twig drupal/core/modules/datetime/templates/datetime-wrapper.html.twig Default theme implementation of a datetime form wrapper.
details.html.twig drupal/core/modules/system/templates/details.html.twig Default theme implementation for a details element.
dropbutton-wrapper.html.twig drupal/core/modules/system/templates/dropbutton-wrapper.html.twig Default theme implementation for a dropbutton wrapper.
feed-icon.html.twig drupal/core/modules/system/templates/feed-icon.html.twig Default theme implementation for a feed icon.
field--node--title.html.twig drupal/core/modules/node/templates/field--node--title.html.twig Default theme implementation for the node title field.
field-multiple-value-form.html.twig drupal/core/modules/system/templates/field-multiple-value-form.html.twig Default theme implementation for an individual form element.
field.html.twig drupal/core/modules/system/templates/field.html.twig Default theme implementation for a field.
fieldset.html.twig drupal/core/modules/system/templates/fieldset.html.twig Default theme implementation for a fieldset element and its children.
file-link.html.twig drupal/core/modules/file/templates/file-link.html.twig Default theme implementation for a link to a file.
file-managed-file.html.twig drupal/core/modules/file/templates/file-managed-file.html.twig Default theme implementation to display a file form widget.
file-upload-help.html.twig drupal/core/modules/file/templates/file-upload-help.html.twig Default theme implementation to display help text for file fields.
file-widget-multiple.html.twig drupal/core/modules/file/templates/file-widget-multiple.html.twig Default theme implementation to display a multi file form widget.
file-widget.html.twig drupal/core/modules/file/templates/file-widget.html.twig Default theme implementation to display a file widget.
filter-guidelines.html.twig drupal/core/modules/filter/templates/filter-guidelines.html.twig Default theme implementation for guidelines for a text format.
filter-tips.html.twig drupal/core/modules/filter/templates/filter-tips.html.twig Default theme implementation for a set of filter tips.
form-element-label.html.twig drupal/core/modules/system/templates/form-element-label.html.twig Default theme implementation for a form element label.
form-element.html.twig drupal/core/modules/system/templates/form-element.html.twig Default theme implementation for a form element.
form.html.twig drupal/core/modules/system/templates/form.html.twig Default theme implementation for a 'form' element.
forum-icon.html.twig drupal/core/modules/forum/templates/forum-icon.html.twig Default theme implementation to display a status icon for a forum post.
forum-list.html.twig drupal/core/modules/forum/templates/forum-list.html.twig Default theme implementation to display a list of forums and containers.
forum-submitted.html.twig drupal/core/modules/forum/templates/forum-submitted.html.twig Default theme implementation for a forum post submission string.
forums.html.twig drupal/core/modules/forum/templates/forums.html.twig Default theme implementation to display a forum.
html.html.twig drupal/core/modules/system/templates/html.html.twig Default theme implementation for the basic structure of a single Drupal page.
image-anchor.html.twig drupal/core/modules/image/templates/image-anchor.html.twig Default theme implementation for a 3x3 grid of checkboxes for image anchors.
image-crop-summary.html.twig drupal/core/modules/image/templates/image-crop-summary.html.twig Default theme implementation for a summary of an image crop effect.
image-formatter.html.twig drupal/core/modules/image/templates/image-formatter.html.twig Default theme implementation to display a formatted image field.
image-resize-summary.html.twig drupal/core/modules/image/templates/image-resize-summary.html.twig Default theme implementation for a summary of an image resize effect.
image-rotate-summary.html.twig drupal/core/modules/image/templates/image-rotate-summary.html.twig Default theme implementation for a summary of an image rotate effect.
image-scale-summary.html.twig drupal/core/modules/image/templates/image-scale-summary.html.twig Default theme implementation for a summary of an image scale effect.
image-style-preview.html.twig drupal/core/modules/image/templates/image-style-preview.html.twig Default theme implementation to display a preview of an image style.
image-style.html.twig drupal/core/modules/image/templates/image-style.html.twig Default theme implementation for an image using a specific image style.
image-widget.html.twig drupal/core/modules/image/templates/image-widget.html.twig Default theme implementation for an image field widget.
image.html.twig drupal/core/modules/system/templates/image.html.twig Default theme implementation of an image.
indentation.html.twig drupal/core/modules/system/templates/indentation.html.twig Default theme implementation for a set of indentation divs.
input.html.twig drupal/core/modules/system/templates/input.html.twig Default theme implementation for an 'input' #type form element.
install-page.html.twig drupal/core/modules/system/templates/install-page.html.twig Default theme implementation to display a Drupal installation page.
item-list.html.twig drupal/core/modules/system/templates/item-list.html.twig Default theme implementation for an item list.
language-negotiation-configure-form.html.twig drupal/core/modules/language/templates/language-negotiation-configure-form.html.twig Default theme implementation for a language negotiation configuration form. *
link-formatter-link-separate.html.twig drupal/core/modules/link/templates/link-formatter-link-separate.html.twig Default theme implementation of a link with separate title and URL elements.
links.html.twig drupal/core/modules/system/templates/links.html.twig Default theme implementation for a set of links.
locale-translation-last-check.html.twig drupal/core/modules/locale/templates/locale-translation-last-check.html.twig Default theme implementation for the last time we checked for update data.
locale-translation-update-info.html.twig drupal/core/modules/locale/templates/locale-translation-update-info.html.twig Default theme implementation for displaying translation status information.
maintenance-page.html.twig drupal/core/modules/system/templates/maintenance-page.html.twig Default theme implementation to display a single Drupal page while offline.
mark.html.twig drupal/core/modules/system/templates/mark.html.twig Default theme implementation for a marker for new or updated content.
node-add-list.html.twig drupal/core/modules/node/templates/node-add-list.html.twig Default theme implementation to list node types available for adding content.
node-edit-form.html.twig drupal/core/modules/node/templates/node-edit-form.html.twig Default theme implementation for a node edit form.
node-preview.html.twig drupal/core/modules/node/templates/node-preview.html.twig Default theme implementation for a node preview.
node.html.twig drupal/core/modules/node/templates/node.html.twig Default theme implementation to display a node.
page.html.twig drupal/core/modules/system/templates/page.html.twig Default theme implementation to display a single page.
pager.html.twig drupal/core/modules/system/templates/pager.html.twig Default theme implementation to display a pager.
progress-bar.html.twig drupal/core/modules/system/templates/progress-bar.html.twig Default theme implementation for a progress bar.
radios.html.twig drupal/core/modules/system/templates/radios.html.twig Default theme implementation for a 'radios' #type form element.
rdf-metadata.html.twig drupal/core/modules/rdf/templates/rdf-metadata.html.twig Default theme implementation for empty spans with RDF attributes.
region.html.twig drupal/core/modules/system/templates/region.html.twig Default theme implementation to display a region.
search-result.html.twig drupal/core/modules/search/templates/search-result.html.twig Default theme implementation for displaying a single search result.
select.html.twig drupal/core/modules/system/templates/select.html.twig Default theme implementation for a select element.
simpletest-result-summary.html.twig drupal/core/modules/simpletest/templates/simpletest-result-summary.html.twig Default theme implementation for simpletest result summaries.
status-messages.html.twig drupal/core/modules/system/templates/status-messages.html.twig Default theme implementation for status messages.
status-report.html.twig drupal/core/modules/system/templates/status-report.html.twig Default theme implementation for the status report.
system-admin-index.html.twig drupal/core/modules/system/templates/system-admin-index.html.twig Default theme implementation for the admin index page.
system-config-form.html.twig drupal/core/modules/system/templates/system-config-form.html.twig Default theme implementation for a system settings form.
system-themes-page.html.twig drupal/core/modules/system/templates/system-themes-page.html.twig Default theme implementation for the Appearance page.
table.html.twig drupal/core/modules/system/templates/table.html.twig Default theme implementation to display a table.
tablesort-indicator.html.twig drupal/core/modules/system/templates/tablesort-indicator.html.twig Default theme implementation for displaying a tablesort indicator.
taxonomy-term.html.twig drupal/core/modules/taxonomy/templates/taxonomy-term.html.twig Default theme implementation to display a taxonomy term.
text-format-wrapper.html.twig drupal/core/modules/filter/templates/text-format-wrapper.html.twig Default theme implementation for a text format-enabled form element.
textarea.html.twig drupal/core/modules/system/templates/textarea.html.twig Default theme implementation for a 'textarea' #type form element.
toolbar.html.twig drupal/core/modules/toolbar/templates/toolbar.html.twig Default theme implementation for the administrative toolbar.
update-last-check.html.twig drupal/core/modules/update/templates/update-last-check.html.twig Default theme implementation for the last time update data was checked.
user.html.twig drupal/core/modules/user/templates/user.html.twig Default theme implementation to present all user data.
username.html.twig drupal/core/modules/user/templates/username.html.twig Default theme implementation for displaying a username.
vertical-tabs.html.twig drupal/core/modules/system/templates/vertical-tabs.html.twig Default theme implementation for vertical tabs.
views-exposed-form.html.twig drupal/core/modules/views/templates/views-exposed-form.html.twig Default theme implementation of a views exposed form.
views-mini-pager.html.twig drupal/core/modules/views/templates/views-mini-pager.html.twig Default theme implementation for a views mini-pager.
views-more.html.twig drupal/core/modules/views/templates/views-more.html.twig Default theme implementation for a views "more" link.
views-ui-container.html.twig drupal/core/modules/views_ui/templates/views-ui-container.html.twig Default theme implementation for a generic views UI container/wrapper.
views-ui-display-tab-bucket.html.twig drupal/core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig Default theme implementation for each "box" on the display query edit screen.
views-ui-display-tab-setting.html.twig drupal/core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig Default theme implementation for Views UI display tab settings.
views-ui-style-plugin-table.html.twig drupal/core/modules/views_ui/templates/views-ui-style-plugin-table.html.twig Default template for the settings of a table style views display.
views-ui-view-info.html.twig drupal/core/modules/views_ui/templates/views-ui-view-info.html.twig Default theme implementation for basic administrative info about a View.
views-ui-view-preview-section.html.twig drupal/core/modules/views_ui/templates/views-ui-view-preview-section.html.twig Default theme implementation for a views UI preview section.
views-view--frontpage.html.twig drupal/core/modules/views/tests/modules/views_test_data/templates/views-view--frontpage.html.twig Default theme implementation for the frontpage view template.
views-view-field.html.twig drupal/core/modules/views/templates/views-view-field.html.twig Default theme implementation for a single field in a view.
views-view-fields.html.twig drupal/core/modules/views/templates/views-view-fields.html.twig Default view template to display all the fields in a row.
views-view-grid.html.twig drupal/core/modules/views/templates/views-view-grid.html.twig Default theme implementation for views to display rows in a grid.
views-view-grouping.html.twig drupal/core/modules/views/templates/views-view-grouping.html.twig Default theme implementation to display a single views grouping.
views-view-list.html.twig drupal/core/modules/views/templates/views-view-list.html.twig Default theme implementation for a view template to display a list of rows.
views-view-mapping-test.html.twig drupal/core/modules/views/tests/modules/views_test_data/templates/views-view-mapping-test.html.twig Default theme implementation to display a view of mapping_test rows.
views-view-mapping-test.html.twig drupal/core/modules/views/templates/views-view-mapping-test.html.twig Default theme implementation for testing the mapping row style.
views-view-opml.html.twig drupal/core/modules/views/templates/views-view-opml.html.twig Default template for feed displays that use the OPML style.
views-view-row-opml.html.twig drupal/core/modules/views/templates/views-view-row-opml.html.twig Default theme implementation to display an item in a views OPML feed.
views-view-row-rss.html.twig drupal/core/modules/views/templates/views-view-row-rss.html.twig Default theme implementation to display an item in a views RSS feed.
views-view-rss.html.twig drupal/core/modules/views/templates/views-view-rss.html.twig Default template for feed displays that use the RSS style.
views-view-summary-unformatted.html.twig drupal/core/modules/views/templates/views-view-summary-unformatted.html.twig Default theme implementation for unformatted summary links.
views-view-summary.html.twig drupal/core/modules/views/templates/views-view-summary.html.twig Default theme implementation to display a list of summary lines.
views-view-table.html.twig drupal/core/modules/views/templates/views-view-table.html.twig Default theme implementation for displaying a view as a table.
views-view-unformatted.html.twig drupal/core/modules/views/templates/views-view-unformatted.html.twig Default theme implementation to display a view of unformatted rows.
views-view.html.twig drupal/core/modules/views/templates/views-view.html.twig Default theme implementation for main view template.

File

drupal/core/modules/system/theme.api.php, line 3