MDL-31224 navigation: Added JSON handling on action_link objects to the navigation
This commit is contained in:
@@ -4077,6 +4077,8 @@ class navigation_json {
|
||||
$attributes['link'] = $child->action;
|
||||
} else if ($child->action instanceof moodle_url) {
|
||||
$attributes['link'] = $child->action->out();
|
||||
} else if ($child->action instanceof action_link) {
|
||||
$attributes['link'] = $child->action->url->out();
|
||||
}
|
||||
$attributes['hidden'] = ($child->hidden);
|
||||
$attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);
|
||||
|
||||
Reference in New Issue
Block a user