mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°8955 New UIBlocks for setup
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\Badge;
|
||||
use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory;
|
||||
use Dict;
|
||||
use utils;
|
||||
|
||||
class BadgeUIBlockFactory extends AbstractUIBlockFactory
|
||||
{
|
||||
/** @inheritDoc */
|
||||
public const TWIG_TAG_NAME = 'UIBadge';
|
||||
/** @inheritDoc */
|
||||
public const UI_BLOCK_CLASS_NAME = Badge::class;
|
||||
|
||||
|
||||
public static function MakeNeutral(string $sLabel, string $sTooltip = '', ?string $sId = null)
|
||||
{
|
||||
return new Badge($sLabel, Badge::ENUM_COLOR_SCHEME_NEUTRAL,$sTooltip, $sId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user