WIP: Add illustration form type

pull/3064/head
Julio Montoya 5 years ago
parent ecc63b181d
commit 4c22629f80
  1. 43
      src/CoreBundle/Form/Type/IllustrationType.php

@ -0,0 +1,43 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Class IllustrationType.
*/
class IllustrationType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver)
{
/*$resolver->setDefaults(
[
'choices' => [
'Yes' => 'true',
'No' => 'false',
],
]
);*/
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return FileType::class;
}
/**
* @return string
*/
public function getName()
{
return 'illustration';
}
}
Loading…
Cancel
Save