Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
core\route\api\templates Class Reference

Public Attributes

path : '/templates/{themename}/{component}/{identifier:.*}'
 Fetch a single template for a component in a theme.
 
path new core router parameters path_component() new core router schema parameters content: [ new core\router\schema\response\content\json_media_type( schema: new core\router\schema\objects\schema_object( content: [ 'templates' => new core\router\schema\objects\array_of_strings( keyparamtype: param::TEXT
 
path new core router parameters path_component() new core router schema parameters default: false
 
path description: 'Fetch a single template for a component in a theme'
 
path new core router parameters path_component() new core router schema parameters description: 'Include comments in the template'
 
path new core router parameters path_component() new core router schema parameters headerparams: [ new core\router\parameters\header_language()
 
path method: ['GET']
 
path new core router parameters path_component() new core router schema parameters path_parameter (name:'identifier', type:param::SAFEPATH,)
 
path pathtypes: [ new core\router\parameters\path_themename()
 
path new core router parameters path_component() new core router schema parameters queryparams: [ new core\router\schema\parameters\query_parameter( name: 'includecomments'
 
path new core router parameters path_component() new core router schema parameters responses: [ new core\router\schema\response\response( statuscode: 200
 
path security: []
 
path title: 'Fetch a single template'
 
path new core router parameters path_component() new core router schema parameters type: param::BOOL
 
path new core router parameters path_component() new core router schema parameters valueparamtype: param::RAW
 

Member Data Documentation

◆ __pad0__

path core\route\api\templates::__pad0__

Fetch a single template for a component in a theme.

Parameters
ResponseInterface$response
string$themename
string$component
null | string$identifier
Return values
payload_response

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