docs/api/source-extension.opencart.catalog.controller.module.html.html
| 1: | <?php | | 2: | namespace Opencart\Catalog\Controller\Extension\Opencart\Module; | | 3: | /** | | 4: | * Class HTML | | 5: | * | | 6: | * @package Opencart\Catalog\Controller\Extension\Opencart\Module | | 7: | */ | | 8: | class HTML extends \Opencart\System\Engine\Controller { | | 9: | /** | | 10: | * Index | | 11: | * | | 12: | * @param array<string, mixed> $setting | | 13: | * | | 14: | * @return string | | 15: | */ | | 16: | public function index(array $setting): string { | | 17: | if (isset($setting['module_description'][$this->config->get('config_language_id')])) { | | 18: | $data['heading_title'] = html_entity_decode($setting['module_description'][$this->config->get('config_language_id')]['title'], ENT_QUOTES, 'UTF-8'); | | 19: | | | 20: | $data['html'] = html_entity_decode($setting['module_description'][$this->config->get('config_language_id')]['description'], ENT_QUOTES, 'UTF-8'); | | 21: | | | 22: | return $this->load->view('extension/opencart/module/html', $data); | | 23: | } else { | | 24: | return ''; | | 25: | } | | 26: | } | | 27: | } | | 28: | |
OpenCart API API documentation generated by ApiGen dev-master