◆ __construct()
core\hook\output\before_standard_top_of_body_html_generation::__construct |
( |
public renderer_base readonly renderer_base | $renderer, |
|
|
private string string | $output = '' ) |
Hook to allow subscribers to add HTML content to the top of the page body.
- Parameters
-
- Parameters
-
$renderer | The page renderer object |
$output | The collected output |
◆ add_html()
core\hook\output\before_standard_top_of_body_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
-
◆ get_output()
core\hook\output\before_standard_top_of_body_html_generation::get_output |
( |
| ) |
|
Returns all HTML added by the plugins.
- Return values
-
◆ process_legacy_callbacks()
core\hook\output\before_standard_top_of_body_html_generation::process_legacy_callbacks |
( |
| ) |
|
Process legacy callbacks.
Legacy callback 'before_standard_top_of_body_html' is deprecated since Moodle 4.4
The documentation for this class was generated from the following file:
- lib/classes/hook/output/before_standard_top_of_body_html_generation.php