Update interface with renderTemplate() method

This commit is contained in:
billz 2024-11-07 10:23:34 -08:00
parent 39a8a58f38
commit ce72d2a0ab

View file

@ -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;
}