LOCALES_PATH
LOCALES_PATH = 'app/frontend/langs'
Site Data Helper Class
$translators : array
getConfigValue(string $config_path, int|null $website_id = null, string|null $locale = null) : mixed
gets config value
string | $config_path | |
int|null | $website_id | |
string|null | $locale |
getHomePageId(null $website_id = null, null $locale = null) : mixed|null
gets homepage page id
null | $website_id | |
null | $locale |
getHomePageRedirectsToLanguage(null $website_id = null) : bool
gets homepage redirects to default language preference
null | $website_id |
getSiteLocales(null $website_id = null) : false|string[]
gets site enabled locales
null | $website_id |
getMainMenuName(null $website_id = null, null $locale = null) : mixed|null
gets main menu name
null | $website_id | |
null | $locale |
getThemeName(null $website_id = null, null $locale = null) : mixed|null
gets main menu name
null | $website_id | |
null | $locale |
getDateFormat(null $website_id = null, null $locale = null) : string
gets date format string
null | $website_id | |
null | $locale |
getSiteMenu(string $menu_name, int $website_id, string $locale, \App\Site\Models\Menu|null $menu_element = null) : array
returns site menu
string | $menu_name | |
int | $website_id | |
string | $locale | |
\App\Site\Models\Menu|null | $menu_element |