1: | <?php
2: | namespace Opencart\Catalog\Model\Design;
3: | /**
4: | * Class Theme
5: | *
6: | * @package Opencart\Catalog\Model\Design
7: | */
8: | class Theme extends \Opencart\System\Engine\Model {
9: | /**
10: | * Get Theme
11: | *
12: | * @param string $route
13: | *
14: | * @return array<string, mixed>
15: | */
16: | public function getTheme(string $route): array {
17: | $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "theme` WHERE `store_id` = '" . (int)$this->config->get('config_store_id') . "' AND `route` = '" . $this->db->escape($route) . "'");
18: |
19: | return $query->row;
20: | }
21: | }
22: |

OpenCart API API documentation generated by ApiGen dev-master