diff --git a/lib/models/Courseware/BlockTypes/Embed.php b/lib/models/Courseware/BlockTypes/Embed.php index a6496c665439fe57cf33323170c5b4143787aaaa..5d067ec8732f5d2619903722e291d01a77088102 100755 --- a/lib/models/Courseware/BlockTypes/Embed.php +++ b/lib/models/Courseware/BlockTypes/Embed.php @@ -121,4 +121,16 @@ class Embed extends BlockType { return []; } + + public function pdfExport() + { + $payload = $this->getPayload(); + $html = '<h5>' . sprintf(_('Block-Typ: %s'), $this->getTitle()) . '</h5>'; + $html .= '<h6>' . _('Block-Daten') . ': ' . '</h6>'; + $html .= '<h6>' . _('Titel') . ' => ' . $payload['title'] . '</h6>'; + $html .= '<h6>' . _('Quelle') . ' => ' . $payload['source'] . '</h6>'; + $html .= '<h6>' . _('URL') . ' => ' . $payload['url'] . '</h6>'; + + return $html; + } }