From 1decbd1cf247932d99facfc562c8de29d366f2ab Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Fri, 11 Feb 2022 09:06:08 +0000 Subject: [PATCH] biest-664 --- lib/models/Courseware/BlockTypes/Embed.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/models/Courseware/BlockTypes/Embed.php b/lib/models/Courseware/BlockTypes/Embed.php index a6496c66543..5d067ec8732 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; + } } -- GitLab