/** * Render the inplace editable used to edit the tour description. * * @param tour $tour The tour to edit. * @return string */ public static function render_tourdescription_inplace_editable(tour $tour) { return new \core\output\inplace_editable('tool_usertours', 'tourdescription', $tour->get_id(), true, $tour->get_description(), $tour->get_description()); }