public function getCourseIconUrl() { if (!$this->profile_block) { return GcrMdlBlockCourseProfile::getDefaultIconUrl(); } return $this->profile_block->getCourseIconUrl(); }