Skip to content
Code-Schnipsel Gruppen Projekte
Commit 0db55ffd erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

feat: OutputTemplate -> getEntity(), set Entity to template

Übergeordneter 8884ea22
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -105,6 +105,14 @@ public function __construct(
$this->Entity = $this->OutputProvider::getEntity($entityId);
}
/**
* @return mixed
*/
public function getEntity()
{
return $this->Entity;
}
/**
* Render the html
*
......@@ -113,7 +121,9 @@ public function __construct(
*/
public function getHTML($preview = false)
{
$templateData = $this->OutputProvider::getTemplateData($this->entityId);
$templateData = $this->OutputProvider::getTemplateData($this->entityId);
$templateData['erpOutputEntity'] = $this->Entity;
$this->Engine->assign($templateData);
$this->preview = $preview;
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren