local/modules/WireTransfer/Hook/HookManager.php line 26

  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 WireTransfer\Hook;
  13. use Thelia\Core\Event\Hook\HookRenderEvent;
  14. use Thelia\Core\Hook\BaseHook;
  15. /**
  16.  * Class HookManager
  17.  *
  18.  * @package Tinymce\Hook
  19.  * @author Franck Allimant <franck@cqfdev.fr>
  20.  */
  21. class HookManager extends BaseHook {
  22.     public function onAdditionalPaymentInfo(HookRenderEvent $event)
  23.     {
  24.         $content $this->render("order-placed.additional-payment-info.html", [
  25.             'placed_order_id' => $event->getArgument('placed_order_id')
  26.         ]);
  27.         $event->add($content);
  28.     }