MDL-72163 admin: Plugins overview page should link to categories

This commit is contained in:
Andrew Nicols
2021-07-16 13:49:43 +08:00
parent 5774e9e081
commit e6e1b50c31
2 changed files with 29 additions and 6 deletions
+14
View File
@@ -810,6 +810,20 @@ class admin_category implements parentable_part_of_admin_tree {
$this->hidden = $hidden;
}
/**
* Get the URL to view this page.
*
* @return moodle_url
*/
public function get_settings_page_url(): moodle_url {
return new moodle_url(
'/admin/category.php',
[
'category' => $this->name,
]
);
}
/**
* Returns a reference to the part_of_admin_tree object with internal name $name.
*