mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-30 10:29:34 -05:00
TileRenderer: Override assemble instead of render
This commit is contained in:
parent
f62364b772
commit
7acfac8947
1 changed files with 3 additions and 8 deletions
|
|
@ -9,10 +9,7 @@ use ipl\Html\Html;
|
|||
|
||||
class TileRenderer extends Renderer
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function render()
|
||||
public function assemble()
|
||||
{
|
||||
$bp = $this->config;
|
||||
$nodesDiv = Html::tag(
|
||||
|
|
@ -60,10 +57,8 @@ class TileRenderer extends Renderer
|
|||
}
|
||||
}
|
||||
|
||||
$nodesDiv->add($this->getContent());
|
||||
$this->setContent($nodesDiv);
|
||||
|
||||
return parent::render();
|
||||
$nodesDiv->addHtml(...$this->getContent());
|
||||
$this->setHtmlContent($nodesDiv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue