/** * Get the user's graded work. * * @return string */ public function get_graded_action() { return json_encode(array('html' => \theme_snap\local::graded())); }