MDL-81648 course: Add a method to retrieve delegate section parent
- New 'get_parent_section()' function added to sectiondelegate abstract class
This commit is contained in:
@@ -124,4 +124,13 @@ abstract class sectiondelegate {
|
||||
): ?action_menu {
|
||||
return $controlmenu->get_default_action_menu($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the parent section of the current delegated section if any.
|
||||
*
|
||||
* @return section_info|null
|
||||
*/
|
||||
public function get_parent_section(): ?section_info {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user