File tree 3 files changed +4
-15
lines changed
3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
1
issueNumber : MDL-81597
2
2
notes :
3
3
theme :
4
- - message : New `core/contextheader ` mustache template has been added. This template can be overridden by themes to modify the context header
4
+ - message : New `core/context_header ` mustache template has been added. This template can be overridden by themes to modify the context header
5
5
type : improved
Original file line number Diff line number Diff line change 26
26
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
27
*/
28
28
29
- use core \output \local \action_menu \subpanel ;
30
- use core \output \named_templatable ;
29
+ use core \output \local \action_menu \subpanel ;
31
30
32
31
defined ('MOODLE_INTERNAL ' ) || die ();
33
32
@@ -4110,7 +4109,7 @@ public function export_for_template(renderer_base $output) {
4110
4109
* @copyright 2015 Adrian Greeve <[email protected] >
4111
4110
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4112
4111
*/
4113
- class context_header implements renderable, named_templatable {
4112
+ class context_header implements renderable, templatable {
4114
4113
4115
4114
/**
4116
4115
* @var string $heading Main heading.
@@ -4232,16 +4231,6 @@ public function export_for_template(renderer_base $output): array {
4232
4231
'additionalbuttons ' => $ additionalbuttons ?? [],
4233
4232
];
4234
4233
}
4235
-
4236
- /**
4237
- * Get the template name.
4238
- *
4239
- * @param renderer_base $renderer Renderer.
4240
- * @return string
4241
- */
4242
- public function get_template_name (renderer_base $ renderer ): string {
4243
- return 'core/contextheader ' ;
4244
- }
4245
4234
}
4246
4235
4247
4236
/**
Original file line number Diff line number Diff line change 15
15
along with Moodle. If not , see < http://www.gnu.org/licenses/> .
16
16
} }
17
17
{ {!
18
- @template core/contextheader
18
+ @template core/context_header
19
19
20
20
Context header template.
21
21
You can’t perform that action at this time.
0 commit comments