BrowsableTree
interface \
What the interactive browser shows: a top level of named entries, each holding data that is loaded when the entry is needed. The browser turns objects into arrays and translates label references itself.
Internal
Table of Contents
Methods
- getEntries() : array<int, BrowsableEntry>
- getTitle() : string
- Heading of the top level, e.g. "Providers" or "Backend routes".
- load() : mixed
- The data of one top-level entry, any value. Throws if the entry cannot be shown, the message of the exception is shown to the user.
- supportsLabels() : bool
- Whether the data holds label references that "L" can switch to their translation.
Methods
getEntries()
public
getEntries() : array<int, BrowsableEntry>
Return values
array<int, BrowsableEntry> —the top level in display order
getTitle()
Heading of the top level, e.g. "Providers" or "Backend routes".
public
getTitle() : string
Return values
stringload()
The data of one top-level entry, any value. Throws if the entry cannot be shown, the message of the exception is shown to the user.
public
load(string $identifier) : mixed
Parameters
- $identifier : string
supportsLabels()
Whether the data holds label references that "L" can switch to their translation.
public
supportsLabels() : bool