ThemeRepository
in package
Table of Contents
Properties
- $apiEndpoint : string
- $bridge : ApiBridge
Methods
- __construct() : mixed
- find() : array<string, string>
- Theme keys (`theme.frontend`, `theme.frontend.path`) of module 1.
Properties
$apiEndpoint
protected
string
$apiEndpoint
= 'api/system/theme'
$bridge read-only
protected
ApiBridge
$bridge
Methods
__construct()
public
__construct(ApiBridge $bridge) : mixed
Parameters
- $bridge : ApiBridge
find()
Theme keys (`theme.frontend`, `theme.frontend.path`) of module 1.
public
find(array<int, string> $keys) : array<string, string>
IMPORTANT: it reads the public subset of the settings, where no secrets are. Reading the
whole entity api/system/setting/getAll and filtering on the front end would send every
DB row over the wire, including email.smtp.password and the OAuth client secrets, just
to pick two keys. Both theme keys have is_public = 1.
The admin counterpart ThemeRepository
stays on getAll: theme.admin* is admin-only and the admin has a grant for both.
Parameters
- $keys : array<int, string>
Return values
array<string, string> —key => value