Example #1
0
 /**
  * @return array
  */
 public static function getConfigurationFormats()
 {
     return Bundle::getConfigurationFormats();
 }
 public function buildForm(FormBuilder $builder, array $options)
 {
     $builder->add('bundle_name', 'text')->add('entity_name', 'text')->add('route_prefix', 'text')->add('with_write_action', 'checkbox')->add('format', 'choice', array('choices' => Bundle::getConfigurationFormats()));
 }
 public function buildForm(FormBuilder $builder, array $options)
 {
     $builder->add('namespace_vendor', 'text')->add('namespace_bundle', 'text')->add('bundle_name', 'text')->add('dir', 'text')->add('format', 'choice', array('choices' => Bundle::getConfigurationFormats()))->add('structure', 'checkbox');
 }
 public function buildForm(FormBuilder $builder, array $options)
 {
     $builder->add('bundle', 'text')->add('name', 'text')->add('fields', 'collection', array('label' => 'Fields', 'type' => new Entity\FieldItemType(), 'prototype' => true, 'allow_add' => true, 'allow_delete' => true, 'options' => array('label' => '*')))->add('format', 'choice', array('choices' => Bundle::getConfigurationFormats()))->add('with_repository', 'checkbox', array('required' => false));
 }