mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-01 23:24:12 +01:00
N°3517 - Clean-up pass on all block factories
This commit is contained in:
@@ -10,11 +10,24 @@ namespace Combodo\iTop\Application\UI\Base\Component\FieldSet;
|
||||
|
||||
use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory;
|
||||
|
||||
/**
|
||||
* Class FieldSetUIBlockFactory
|
||||
*
|
||||
* @author eric Espie <eric.espie@combodo.com>
|
||||
* @package Combodo\iTop\Application\UI\Base\Component\FieldSet
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class FieldSetUIBlockFactory extends AbstractUIBlockFactory
|
||||
{
|
||||
public const TWIG_TAG_NAME = 'UIFieldSet';
|
||||
public const UI_BLOCK_CLASS_NAME = FieldSet::class;
|
||||
|
||||
/**
|
||||
* @param string $sLegend
|
||||
* @param string|null $sId
|
||||
*
|
||||
* @return \Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSet A standard fieldset in which you can add UIBlocks
|
||||
*/
|
||||
public static function MakeStandard(string $sLegend, ?string $sId = null): FieldSet
|
||||
{
|
||||
return new FieldSet($sLegend, $sId);
|
||||
|
||||
Reference in New Issue
Block a user