public function get_discussion_view_first_unread_post_url_from_discussion(discussion_entity $discussion) {
        $viewurl = $this->get_discussion_view_url_from_discussion_id($discussion->get_id());
        $viewurl->set_anchor('unread');

        return $viewurl;
    }
public function get_discussion_view_first_unread_post_url_from_discussion(discussion_entity $discussion) {
        $viewurl = $this->get_discussion_view_url_from_discussion_id($discussion->get_id());
        $viewurl->set_anchor('unread');

        return $viewurl;
    }
public function get_discussion_view_first_unread_post_url_from_discussion ( discussion_entity $ discussion ) { $ viewurl = $ this -> get_discussion_view_url_from_discussion_id ( $ discussion -> get_id ( ) ) ; $ viewurl -> set_anchor ( 'unread' ) ; return $ viewurl ; }
Get the url to view the first unread post in a discussion.

@param discussion_entity $discussion The discussion
@return moodle_url
Get the url to view the first unread post in a discussion .