Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core\hook\output\after_standard_main_region_html_generation Class Reference

Public Member Functions

 __construct (public renderer_base readonly renderer_base $renderer, private string string $output='',)
 Hook to allow subscribers to add HTML content after the main region content has been generated.
 
 add_html (?string $output)
 Plugins implementing callback can add any HTML to the top of the body.
 
 get_output ()
 Returns all HTML added by the plugins.
 
 process_legacy_callbacks ()
 Process legacy callbacks.
 

Constructor & Destructor Documentation

◆ __construct()

core\hook\output\after_standard_main_region_html_generation::__construct ( public renderer_base readonly renderer_base $renderer,
private string string $output = '' )

Hook to allow subscribers to add HTML content after the main region content has been generated.

Parameters
renderer_base$renderer
string$outputInitial output
Parameters
$rendererThe page renderer object
$outputThe collected output

Member Function Documentation

◆ add_html()

core\hook\output\after_standard_main_region_html_generation::add_html ( ?string $output)

Plugins implementing callback can add any HTML to the top of the body.

Must be a string containing valid html head content.

Parameters
null | string$output

◆ get_output()

core\hook\output\after_standard_main_region_html_generation::get_output ( )

Returns all HTML added by the plugins.

Return values
string

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