mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update interface with renderTemplate() method
This commit is contained in:
parent
39a8a58f38
commit
ce72d2a0ab
1 changed files with 8 additions and 0 deletions
|
@ -22,5 +22,13 @@ interface PluginInterface
|
|||
* @param Sidebar $sidebar Sidebar instance for adding items
|
||||
*/
|
||||
public function initialize(Sidebar $sidebar): void;
|
||||
|
||||
/**
|
||||
* Render a template within the plugin's template directory
|
||||
* @param string $templateName
|
||||
* @param array $__data
|
||||
* @return string
|
||||
*/
|
||||
public function renderTemplate(string $templateName, array $__data = []): string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue