コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $transformer = new AngularAttributeTransformer();
     $attr = $transformer->transform($options);
     $builder->add('value', 'integer', ['required' => $options['attribute']->getRequired() ? true : false, 'label' => false, 'attr' => $attr]);
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $transformer = new AngularAttributeTransformer();
     $attr = $transformer->transform($options);
     $builder->add('value', 'ruleeditor', ['label' => false, 'provider' => 'content', 'attr' => $attr]);
 }