mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
39 lines
950 B
PHP
39 lines
950 B
PHP
<?php
|
|
|
|
/**
|
|
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
namespace Combodo\iTop\Application\UI\Base\Component\CollapsibleSection;
|
|
|
|
use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory;
|
|
|
|
/**
|
|
* Class CollapsibleSectionUIBlockFactory
|
|
*
|
|
* @author Pierre Goiffon <pierre.goiffon@combodo.com>
|
|
* @package UIBlockAPI
|
|
* @api
|
|
* @since 3.0.0
|
|
*/
|
|
class CollapsibleSectionUIBlockFactory extends AbstractUIBlockFactory
|
|
{
|
|
/** @inheritDoc */
|
|
public const TWIG_TAG_NAME = 'UICollapsibleSection';
|
|
/** @inheritDoc */
|
|
public const UI_BLOCK_CLASS_NAME = CollapsibleSection::class;
|
|
|
|
/**
|
|
* @api
|
|
* @param string $sTitle
|
|
* @param string|null $sId
|
|
*
|
|
* @return \Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection
|
|
*/
|
|
public static function MakeStandard(string $sTitle, ?string $sId = null)
|
|
{
|
|
return new CollapsibleSection($sTitle, [], $sId);
|
|
}
|
|
}
|