Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
core\output\mustache_template_finder Class Reference

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.
 

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: