mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°8771 - Add Symfony form component to iTop core
- IO debug
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
namespace Combodo\iTop\Forms\Block\Base;
|
||||
|
||||
use Combodo\iTop\Forms\Block\AbstractFormBlock;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Combodo\iTop\Forms\Block\FormType\ChoiceFormType;
|
||||
|
||||
/**
|
||||
* Form block for choices.
|
||||
@@ -18,16 +18,13 @@ class ChoiceFormBlock extends AbstractFormBlock
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
{
|
||||
return ChoiceType::class;
|
||||
return ChoiceFormType::class;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
public function InitOptions(): array
|
||||
{
|
||||
return [
|
||||
// debug purpose
|
||||
'required' => false,
|
||||
'placeholder' => 'Select an element...',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user