MDL-81047 core: Rename standard_head_html_prepend hook

This commit updates the name of the standard_head_html_prepend hook to
meet coding style agreed in MDL-79077.
This commit is contained in:
Andrew Nicols
2024-03-08 23:56:39 +08:00
parent 38a3310c92
commit 0a30867cdf
6 changed files with 12 additions and 15 deletions
+2 -4
View File
@@ -698,15 +698,13 @@ class core_renderer extends renderer_base {
$this->page->blocks->ensure_content_created($region, $this);
}
$output = '';
// Give plugins an opportunity to add any head elements. The callback
// must always return a string containing valid html head content.
$hook = new \core\hook\output\standard_head_html_prepend();
$hook = new \core\hook\output\before_standard_head_html_generation();
\core\hook\manager::get_instance()->dispatch($hook);
$hook->process_legacy_callbacks();
$output .= $hook->get_output();
$output = $hook->get_output();
// Allow a url_rewrite plugin to setup any dynamic head content.
if (isset($CFG->urlrewriteclass) && !isset($CFG->upgraderunning)) {