local/modules/OpenApi/Hook/BackHook.php line 12

  1. <?php
  2. namespace OpenApi\Hook;
  3. use OpenApi\Form\ConfigForm;
  4. use OpenApi\OpenApi;
  5. use Thelia\Core\Event\Hook\HookRenderEvent;
  6. use Thelia\Core\Hook\BaseHook;
  7. class BackHook extends BaseHook
  8. {
  9.     public function onModuleConfiguration(HookRenderEvent $event)
  10.     {
  11.         $configVariables explode(','OpenApi::getConfigValue('config_variables'));
  12.         $event->add($this->render('configuration.html', ['configs' => $configVariables]));
  13.     }
  14. }