mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-81144 core: Standardise init of standard_head_html_prepend hook
This commit is contained in:
parent
305248f41d
commit
9bd3228d69
@ -27,13 +27,21 @@ namespace core\hook\output;
|
||||
#[\core\attribute\label('Allows plugins to add any elements to the page <head> html tag.')]
|
||||
#[\core\attribute\hook\replaces_callbacks('before_standard_html_head')]
|
||||
final class before_standard_head_html_generation {
|
||||
/**
|
||||
* Hook to allow subscribers to add HTML content to page head tag.
|
||||
*
|
||||
* @param renderer_base $renderer
|
||||
* @param string $output Initial output
|
||||
*/
|
||||
public function __construct(
|
||||
/** @var \renderer_base The core_renderer instance used for the generation */
|
||||
public readonly \renderer_base $renderer,
|
||||
/** @var string The collected output */
|
||||
private string $output = '',
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Plugins implementing callback can add any HTML to the page.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user