private function get_exported_discussion(stdClass $user) : array {
        $discussionexporter = $this->exporterfactory->get_discussion_exporter(
            $user,
            $this->forum,
            $this->discussion,
            $this->get_groups_available_in_forum()
        );

        return (array) $discussionexporter->export($this->renderer);
    }
private function get_exported_discussion(stdClass $user) : array {
        $discussionexporter = $this->exporterfactory->get_discussion_exporter(
            $user,
            $this->forum,
            $this->discussion,
            $this->get_groups_available_in_forum()
        );

        return (array) $discussionexporter->export($this->renderer);
    }
private function get_exported_discussion ( stdClass $ user ) : array { $ discussionexporter = $ this -> exporterfactory -> get_discussion_exporter ( $ user , $ this -> forum , $ this -> discussion , $ this -> get_groups_available_in_forum ( ) ) ; return ( array ) $ discussionexporter -> export ( $ this -> renderer ) ; }
Get the exported discussion.

@param stdClass $user The user viewing the discussion
@return array
Get the exported discussion .