36 $this->
lng = $DIC->language();
37 $this->
renderer = $DIC->ui()->renderer();
42 $this->badge =
new ilBadge($this->assignment->getBadgeId());
44 $this->assignment =
null;
51 $this->
lng->loadLanguageModule(
'badge');
52 $content = $this->tile->modalContent($this->badge);
53 if ($this->assignment) {
54 $content = $this->tile->addAssignment($content, $this->assignment);
57 return $this->
renderer->render($this->tile->asImage($content));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly Renderer $renderer
readonly ilBadgeAssignment $assignment
__construct(?ilBadgeAssignment $assignment=null, ?ilBadge $badge=null)
An entity that renders components to a string output.