<?php
namespace Cms\ContainerBundle\Form\Type\Container;
use Cms\CoreBundle\Form\Type\SwitchType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Class GenericContainerType
* @package Cms\ContainerBundle\Form\Type\Container
*/
final class GenericContainerType extends AbstractContainerType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);
$builder
->add('preferred', SwitchType::class, array(
'categoryName' => 'General',
'required' => false,
))
->add('code', TextType::class, array(
'categoryName' => 'General',
'required' => false,
))
;
}
}