public function get_forum_view_url_from_forum(forum_entity $forum, ?int $pageno = null,
            ?int $sortorder = null) : moodle_url {

        return $this->get_forum_view_url_from_course_module_id($forum->get_course_module_record()->id, $pageno, $sortorder);
    }
public function get_forum_view_url_from_forum(forum_entity $forum, ?int $pageno = null,
            ?int $sortorder = null) : moodle_url {

        return $this->get_forum_view_url_from_course_module_id($forum->get_course_module_record()->id, $pageno, $sortorder);
    }
public function get_forum_view_url_from_forum ( forum_entity $ forum , ? int $ pageno = null , ? int $ sortorder = null ) : moodle_url { return $ this -> get_forum_view_url_from_course_module_id ( $ forum -> get_course_module_record ( ) -> id , $ pageno , $ sortorder ) ; }
Get the view forum url for the given forum and optionally a page number.

@param forum_entity $forum The forum entity
@param int|null $pageno The page number
@param int|null $sortorder The sorting order
@return moodle_url
Get the view forum url for the given forum and optionally a page number .