ThemeInitTrait uses trait:short
Table of Contents
Properties
- $deviceDetector : DeviceDetector
- $themeContext : ThemeContext
- $themeManager : ThemeManager
- $themeResolver : DefaultThemeResolver
- $theme : Theme|null
Methods
- formatLayoutTemplateFiles() : array<string|int, mixed>
- Admin version of {@see \App\Core\Traits\Front\Presenters\ThemeInitTrait::formatLayoutTemplateFiles()}.
- formatTemplateFiles() : array<string|int, mixed>
- getAdminLayout() : string
- Returns the fallback layout of the admin theme; a presenter may override it (`LoginPresenter` uses `@login.latte`).
- initializeTheme() : void
Properties
$deviceDetector
public
DeviceDetector
$deviceDetector
Attributes
- #[Inject]
$themeContext
public
ThemeContext
$themeContext
Attributes
- #[Inject]
$themeManager
public
ThemeManager
$themeManager
Attributes
- #[Inject]
$themeResolver
public
DefaultThemeResolver
$themeResolver
Attributes
- #[Inject]
$theme
private
Theme|null
$theme
= null
Methods
formatLayoutTemplateFiles()
Admin version of {@see \App\Core\Traits\Front\Presenters\ThemeInitTrait::formatLayoutTemplateFiles()}.
public
formatLayoutTemplateFiles() : array<string|int, mixed>
It starts from AdminPage ($adminPageEntity,
column layout), not from the Front $pageEntity, which an admin presenter does not have;
admin also has no loggedLayout. The database value wins; getAdminLayout() is the
fallback that LoginPresenter overrides with @login.latte.
Return values
array<string|int, mixed>formatTemplateFiles()
public
formatTemplateFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>getAdminLayout()
Returns the fallback layout of the admin theme; a presenter may override it (`LoginPresenter` uses `@login.latte`).
protected
getAdminLayout() : string
Return values
stringinitializeTheme()
private
initializeTheme() : void