Rajout du module View pour pouvoir afficher dans les menus la liste des marques
This commit is contained in:
31
local/modules/View/Hook/HookManager.php
Normal file
31
local/modules/View/Hook/HookManager.php
Normal 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")
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user