Extends classes to Abstract Input

This commit is contained in:
2019-04-17 23:41:55 +02:00
parent 00b1b4cff2
commit 616d1a15b5
5 changed files with 35 additions and 29 deletions

View File

@ -2,19 +2,12 @@
namespace AdminPanel\Form;
class ChoiceInput extends TextInput
class ChoiceInput extends AbstractInput
{
public function getOptions(): array
{
return array(
'label',
'value',
'choices'
);
}
public function getTemplate(): string
{
return "@AdminPanel/form/choice.twig";
}
}