local/modules/BetterSeo/Hook/SeoFormHook.php line 20

  1. <?php
  2. namespace BetterSeo\Hook;
  3. use BetterSeo\Model\BetterSeo;
  4. use BetterSeo\Model\BetterSeoQuery;
  5. use Thelia\Core\Event\Hook\HookRenderEvent;
  6. use Thelia\Core\Hook\BaseHook;
  7. use Thelia\Model\BrandQuery;
  8. use Thelia\Model\CategoryQuery;
  9. use Thelia\Model\ContentQuery;
  10. use Thelia\Model\FolderQuery;
  11. use Thelia\Model\Lang;
  12. use Thelia\Model\LangQuery;
  13. use Thelia\Model\ProductQuery;
  14. class SeoFormHook extends BaseHook
  15. {
  16.     public function onTabSeoUpdateForm(HookRenderEvent $event)
  17.     {
  18.         $objectId $event->getArgument('id');
  19.         $objectType $event->getArgument('type');
  20.         $event->add(
  21.             $this->render(
  22.                 "seo-additional-fields.html",
  23.                 [
  24.                     'object_id' => $objectId,
  25.                     'object_type' => $objectType,
  26.                 ]
  27.             )
  28.         );
  29.     }
  30. }