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

  1. <?php
  2. /*
  3.  * This file is part of the Thelia package.
  4.  * http://www.thelia.net
  5.  *
  6.  * (c) OpenStudio <info@thelia.net>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Cheque\Hook;
  12. use Thelia\Core\Event\Hook\HookRenderEvent;
  13. use Thelia\Core\Hook\BaseHook;
  14. /**
  15.  * Class HookManager.
  16.  *
  17.  * @author Franck Allimant <franck@cqfdev.fr>
  18.  */
  19. class HookManager extends BaseHook
  20. {
  21.     public function onAdditionalPaymentInfo(HookRenderEvent $event): void
  22.     {
  23.         $content $this->render('order-placed.additional-payment-info.html', [
  24.             'placed_order_id' => $event->getArgument('placed_order_id'),
  25.         ]);
  26.         $event->add($content);
  27.     }
  28. }