Hook displayOverrideTemplate

Information

Change the default template of current controller:

Hook locations:

  • front office

Hook type: display

Located in:

Call of the Hook in the origin file

Hook::exec(
            'displayOverrideTemplate',
            [
                'controller' => $this,
                'template_file' => $template,
                'id' => $params['id'],
                'locale' => $locale,
            ]
        )