1: <?php
2:
3: namespace Mapbender\CoreBundle\Form;
4:
5: use Symfony\Component\Form\AbstractType;
6: use Symfony\Component\Form\FormBuilderInterface;
7:
8: /**
9: * Description of GroupType
10: *
11: * @author Arash R. Pour
12: */
13: class GroupType extends AbstractType
14: {
15:
16: /**
17: * @inheritdoc
18: */
19: public function getName()
20: {
21: return "Group";
22: }
23:
24: /**
25: * @inheritdoc
26: */
27: public function buildForm(FormBuilderInterface $builder, array $options)
28: {
29:
30: $builder->add("name", "text", array(
31: ));
32:
33: $builder->add("description", "textarea",
34: array(
35: "required" => false
36: ));
37: }
38:
39: }
40: