N°8771 - Add Symfony form component to iTop core

- IO
This commit is contained in:
Benjamin Dalsass
2025-10-24 07:54:51 +02:00
parent a51272f107
commit 7708f8e00e
11 changed files with 133 additions and 22 deletions

View File

@@ -0,0 +1,24 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Forms\Converter;
use Combodo\iTop\Forms\Block\IO\Format\AttributeIOFormat;
use Combodo\iTop\Forms\Block\IO\Format\ClassIOFormat;
/**
* String to attribute converter.
*/
class StringToAttributeConverter extends AbstractOutputConverter
{
/** @inheritdoc */
public function Convert(mixed $oData): ?AttributeIOFormat
{
if($oData === null)
return null;
return new AttributeIOFormat($oData);
}
}