local/modules/Colissimo/Hook/HookManager.php line 25

  1. <?php
  2. /*************************************************************************************/
  3. /*      This file is part of the Thelia package.                                     */
  4. /*                                                                                   */
  5. /*      Copyright (c) OpenStudio                                                     */
  6. /*      email : dev@thelia.net                                                       */
  7. /*      web : http://www.thelia.net                                                  */
  8. /*                                                                                   */
  9. /*      For the full copyright and license information, please view the LICENSE.txt  */
  10. /*      file that was distributed with this source code.                             */
  11. /*************************************************************************************/
  12. namespace Colissimo\Hook;
  13. use Thelia\Core\Event\Hook\HookRenderEvent;
  14. use Thelia\Core\Hook\BaseHook;
  15. /**
  16.  * Class HookManager
  17.  * @package Colissimo\Hook
  18.  * @author Thomas Arnaud <tarnaud@openstudio.fr>
  19.  */
  20. class HookManager extends BaseHook
  21. {
  22.     public function onModuleConfiguration(HookRenderEvent $event)
  23.     {
  24.         $module_id self::getModule()->getModuleId();
  25.         $event->add($this->render("module_configuration.html", ['module_id' => $module_id]));
  26.     }
  27. }