mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Add UIBlocks to twig (Changed classes name)
This commit is contained in:
@@ -273,9 +273,10 @@ class Panel extends UIContentBlock
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function AddSubBlock(iUIBlock $oSubBlock) {
|
||||
$this->AddMainBlock($oSubBlock);
|
||||
|
||||
public function AddSubBlock(?iUIBlock $oSubBlock) {
|
||||
if ($oSubBlock) {
|
||||
$this->AddMainBlock($oSubBlock);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ use ormStyle;
|
||||
class PanelUIBlockFactory extends AbstractUIBlockFactory
|
||||
{
|
||||
public const TWIG_TAG_NAME = 'UIPanel';
|
||||
public const UI_BLOCK_CLASS_NAME = "Combodo\\iTop\\Application\\UI\\Base\\Component\\Panel\\Panel";
|
||||
public const UI_BLOCK_CLASS_NAME = Panel::class;
|
||||
|
||||
/**
|
||||
* Make a basis Panel component
|
||||
|
||||
Reference in New Issue
Block a user