forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-83164 core: Add support for namespaced renderer methods
- Loading branch information
1 parent
525fc81
commit 11216cc
Showing
3 changed files
with
149 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
issueNumber: MDL-83164 | ||
notes: | ||
core: | ||
- message: > | ||
When rendering a renderable located within a namespace, the namespace | ||
will now be included in the renderer method name with double-underscores | ||
separating the namespace parts. | ||
Note: Only those renderables within an `output` namespace will be | ||
considered, for example `\core\output\action_menu\link` and only the | ||
parts of the namespace after `output` will be included. | ||
The following are examples of the new behaviour: | ||
| Renderable name | Renderer method | ||
name | | ||
| --- | | ||
--- | | ||
| `\core\output\action_menu\link` | | ||
`render_action_menu__link` | | ||
| `\core\output\action_menu\link_primary` | | ||
`render_action_menu__link_primary` | | ||
| `\core\output\action\menu\link` | | ||
`render_action__menu__link` | | ||
| `\core\output\user_menu\link` | | ||
`render_user_menu__link` | | ||
type: improved | ||
- message: > | ||
The following renderer methods have been deprecated from the core | ||
renderer: | ||
| method | | ||
replacement | | ||
| --- | | ||
--- | | ||
| `render_action_menu_link` | | ||
`render_action_menu__link` | | ||
| `render_action_menu_link_primary` | | ||
`render_action_menu__link_primary` | | ||
| `render_action_menu_link_secondary` | | ||
`render_action_menu__link_secondary` | | ||
| `render_action_menu_filler` | | ||
`render_action_menu__filler` | | ||
type: deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters