Hook displayOverrideTemplate
Change the default template of current controller
Hook |
displayOverrideTemplate |
Locations |
FO |
Type |
display |
Origin |
core |
Aliases |
|
Description |
|
Located in
Call of the Hook in the origin file
Before
8.1
Hook::exec(
'displayOverrideTemplate',
[
'controller' => $this,
'template_file' => $template,
'id' => $params['id'],
'locale' => $locale,
]
)
From
8.1
Hook::exec(
'displayOverrideTemplate',
[
'controller' => $this,
'template_file' => $template,
'entity' => $params['entity'],
'id' => $params['id'],
'locale' => $locale,
]
)