* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class IndexControllerCore extends FrontController { /** @var string */ public $php_self = 'index'; /** * Assign template vars related to page content. * * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->context->smarty->assign([ 'HOOK_HOME' => Hook::exec('displayHome'), ]); $this->setTemplate('index'); } /** * {@inheritdoc} */ public function getCanonicalURL() { return $this->context->link->getPageLink('index'); } }