diff --git a/sources/application/UI/Base/Layout/PageContent/PageContentWithSideContent.php b/sources/application/UI/Base/Layout/PageContent/PageContentWithSideContent.php index 779083d0ca..9de2a15314 100644 --- a/sources/application/UI/Base/Layout/PageContent/PageContentWithSideContent.php +++ b/sources/application/UI/Base/Layout/PageContent/PageContentWithSideContent.php @@ -20,6 +20,7 @@ namespace Combodo\iTop\Application\UI\Base\Layout\PageContent; +use Combodo\iTop\Application\UI\Base\Component\Html\Html; use Combodo\iTop\Application\UI\Base\iUIBlock; /** @@ -87,6 +88,19 @@ class PageContentWithSideContent extends PageContent { return $this; } + /** + * Add $sHtml to the side blocks + * + * @param string $sHtml + * + * @return $this + */ + public function AddSideHtml(string $sHtml) { + $this->AddBlockToContentArea(static::ENUM_CONTENT_AREA_SIDE, new Html($sHtml)); + + return $this; + } + /** * Remove the side block identified by $sBlockId. * Note that if no block with that ID exists, it will proceed silently.