41 {
42 $tpl = new \ilTemplate('tpl.wopi_container.html', true, true, 'components/ILIAS/WOPI');
43 $tpl->setVariable('EDITOR_URL', (string) $this->embedded_application->getActionLauncherURL());
44 $tpl->setVariable('INLINE', (string) (int) $this->embedded_application->isInline());
45 $tpl->setVariable('TOKEN', $this->embedded_application->getToken());
46 $tpl->setVariable('TTL', (string) (time() + $this->embedded_application->getTTL()) * 1000);
47
48 return $this->ui_factory->legacy()->content($tpl->get());
49 }