Init du module DHL (sur la base du module Colissimo)
This commit is contained in:
21
local/modules/DHL/Hook/HookManager.php
Normal file
21
local/modules/DHL/Hook/HookManager.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace DHL\Hook;
|
||||
|
||||
use Thelia\Core\Event\Hook\HookRenderEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
|
||||
/**
|
||||
* Class HookManager
|
||||
* @package DHL\Hook
|
||||
* @author Thomas Arnaud <tarnaud@openstudio.fr>
|
||||
*/
|
||||
class HookManager extends BaseHook
|
||||
{
|
||||
public function onModuleConfiguration(HookRenderEvent $event)
|
||||
{
|
||||
$module_id = self::getModule()->getModuleId();
|
||||
|
||||
$event->add($this->render("module_configuration.html", ['module_id' => $module_id]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user