Layer: Core · Source: lib/core/Theme/ThemeViewModelInterface.php:19 (lines 19–30)
interface ThemeViewModelInterface
Base contract for theme view models.
A view model is an immutable, already-escaped value object that templates print directly. It carries NO logic beyond read-only getters, so a template can never trigger a database query or mutate shared state.
| Tag | Value |
|---|---|
@category | Theme |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | toArray() | Return all escaped display values keyed by their public name. | 29 |
public function toArray(): array
line 29
Return all escaped display values keyed by their public name.
Takes no parameters.
Returns: array — array<string, string|null>
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.