MDL-57446 block_myoverview: add course summary renderable
[moodle.git] / blocks / myoverview / block_myoverview.php
index 7ae6662..170aae1 100644 (file)
@@ -50,8 +50,12 @@ class block_myoverview extends block_base {
             return $this->content;
         }
 
+        $renderable = new \block_myoverview\output\course_summary();
+
+        $renderer = $this->page->get_renderer('block_myoverview');
+
         $this->content = new stdClass();
-        $this->content->text = $this->page->get_renderer('block_myoverview')->get_content();
+        $this->content->text = $renderer->render($renderable);
         $this->content->footer = '';
 
         return $this->content;