scriptlog:lib:core:themeviewmodelinterface
Table of Contents
ThemeViewModelInterface
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.
Docblock Metadata
| Tag | Value |
|---|---|
@category | Theme |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (1)
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | toArray() | Return all escaped display values keyed by their public name. | 29 |
toArray()
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.
scriptlog/lib/core/themeviewmodelinterface.txt · Last modified: by admin
