Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core\output\renderer_helper Class Reference

Public Member Functions

 get_core_renderer ()
 Get the core renderer.
 
 get_page ()
 Get the current page instance.
 
 get_renderer (string $component, ?string $subtype=null)
 Get the renderer for a particular part of Moodle.
 

Member Function Documentation

◆ get_core_renderer()

core\output\renderer_helper::get_core_renderer ( )

Get the core renderer.

This method is a shortcut to get the core renderer with the correct return type declaration. This way the IDE can provide better autocompletion.

Return values
core_renderer

◆ get_page()

core\output\renderer_helper::get_page ( )

Get the current page instance.

Return values
moodle_page

◆ get_renderer()

core\output\renderer_helper::get_renderer ( string $component,
?string $subtype = null )

Get the renderer for a particular part of Moodle.

Parameters
string$componentname such as 'core', 'mod_forum' or 'qtype_multichoice'.
string | null$subtypeoptional subtype such as 'news' resulting to 'mod_forum_news'
Return values
renderer_base

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