Rajout du module View pour pouvoir afficher dans les menus la liste des marques

This commit is contained in:
2023-12-02 15:42:11 +01:00
parent fc6a693f1c
commit 97a75fbf2a
37 changed files with 4471 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
<?php
/**
* Created by PhpStorm.
* User: nicolasbarbey
* Date: 27/08/2019
* Time: 13:41
*/
namespace View\Hook;
use Thelia\Core\Event\Hook\HookRenderEvent;
use Thelia\Core\Hook\BaseHook;
class HookManager extends BaseHook
{
public function onModuleConfiguration(HookRenderEvent $event)
{
$event->add(
$this->render("ViewConfiguration.html")
);
}
public function onEditModuleTab(HookRenderEvent $event)
{
$view = $event->getArgument('view');
$event->add(
$this->render("View-".$view.".html")
);
}
}