◆ __construct()
Wikibase\View\Template\TemplateFactory::__construct |
( |
TemplateRegistry | $templateRegistry | ) |
|
◆ getDefaultInstance()
static Wikibase\View\Template\TemplateFactory::getDefaultInstance |
( |
| ) |
|
|
static |
◆ getTemplates()
Wikibase\View\Template\TemplateFactory::getTemplates |
( |
| ) |
|
- Returns
- string[] Array containing all raw template strings.
◆ render()
Wikibase\View\Template\TemplateFactory::render |
( |
| $key, |
|
|
| $params ) |
Shorthand function to retrieve a template filled with the specified parameters.
important! note that the Template class does not escape anything. be sure to escape your params before using this function!
- Parameters
-
string | $key | template key Varargs: normal template parameters |
| string|array|null | ...$params |
- Returns
- string
◆ $instance
Wikibase\View\Template\TemplateFactory::$instance |
|
staticprivate |
◆ $templateRegistry
Wikibase\View\Template\TemplateFactory::$templateRegistry |
|
private |
The documentation for this class was generated from the following file: