mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°2844 - Add iUIContentBlock::HasSubBlocks() helper
This commit is contained in:
@@ -109,9 +109,18 @@ class PageContentWithSideContent extends PageContent {
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function RemoveSideBlock(string $sBlockId) {
|
||||
public function RemoveSideBlock(string $sBlockId)
|
||||
{
|
||||
$this->RemoveBlockFromContentArea(static::ENUM_CONTENT_AREA_SIDE, $sBlockId);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function HasSubBlocks(): bool
|
||||
{
|
||||
return parent::HasSubBlocks() || !empty($this->GetSideBlocks());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user