Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 467 Bytes

determine-the-base-name-of-a-template.md

File metadata and controls

13 lines (8 loc) · 467 Bytes

Determine the Base Name of a Template

The Base Name of a template is also referred to as the Theme Hook. The Base Name of a template is used for determining thinks such as which preprocess function effects a template and which template files are used for theming components. See below for examples.

TEMPLATE HOOK
node.html.twig node
page.html.twig page
node--article.html.twig node
field--body--1.html.twig field