Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core\output\mustache_template_finder Class Reference

Get information about valid locations for mustache templates. More...

Static Public Member Functions

static get_template_directories_for_component ($component, $themename='')
 Helper function for getting a list of valid template directories for a specific component.
 
static get_template_filepath ($name, $themename='')
 Helper function for getting a filename for a template from the template name.
 

Detailed Description

Get information about valid locations for mustache templates.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Since
2.9

Member Function Documentation

◆ get_template_directories_for_component()

static core\output\mustache_template_finder::get_template_directories_for_component ( $component,
$themename = '' )
static

Helper function for getting a list of valid template directories for a specific component.

Parameters
string$componentThe component to search
string$themenameThe current theme name
Return values
string[]List of valid directories for templates for this compoonent. Directories are not checked for existence.

◆ get_template_filepath()

static core\output\mustache_template_finder::get_template_filepath ( $name,
$themename = '' )
static

Helper function for getting a filename for a template from the template name.

Parameters
string$name- This is the componentname/templatename combined.
string$themename- This is the current theme name.
Return values
string

The documentation for this class was generated from the following file: