Skip to content
Snippets Groups Projects
Commit fafc6f1e authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

TemplateRenderer interface.

parent c89382f7
No related tags found
1 merge request!17TemplateRenderer interface.
Pipeline #7716 passed with warnings with stages
in 5 minutes and 1 second
<?php
namespace WPDesk\PluginBuilder\Plugin;
interface TemplateRenderer {
/**
* Init base variables for plugin
*/
public function init_template_base_variables();
/**
* Renders end returns selected template
*
* @param string $name Name of the template.
* @param string $path Additional inner path to the template.
* @param array $args args Accessible from template.
*
* @return string
*/
public function load_template( $name, $path = '', $args = array() );
/**
* Get template path.
*
* @return string
*/
public function get_template_path();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment