Allows storing and accessing of templates (e.g.
More...
Allows storing and accessing of templates (e.g.
snippets commonly used in server-side HTML generation and client-side JavaScript processing).
This class Stores plain templates.
- Copyright
- GPL-2.0-or-later
- Author
- H. Snater media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om
-
Thiemo Kreuz
◆ __construct()
Wikibase\View\Template\TemplateRegistry::__construct |
( |
array | $templates | ) |
|
◆ getTemplate()
Wikibase\View\Template\TemplateRegistry::getTemplate |
( |
| $key | ) |
|
Gets a specific template.
- Parameters
-
- Returns
- string
◆ getTemplates()
Wikibase\View\Template\TemplateRegistry::getTemplates |
( |
| ) |
|
Gets the array containing all templates.
- Returns
- string[]
◆ $templates
Wikibase\View\Template\TemplateRegistry::$templates = [] |
|
private |
The documentation for this class was generated from the following file: