N°3517 - Clean-up pass on all block factories

This commit is contained in:
Molkobain
2021-11-10 19:35:50 +01:00
parent fffd4cf962
commit ca2124130f
29 changed files with 146 additions and 4 deletions

View File

@@ -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);