Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(array('attributes' => array(), 'value' => 'id'));
     $resolver->addAllowedTypes('attributes', 'array');
     $resolver->addAllowedTypes('value', 'string');
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(array('attributes' => array(), 'value' => 'id', 'render_checkbox_if' => null));
     $resolver->setAllowedTypes('attributes', 'array');
     $resolver->setAllowedTypes('value', 'string');
     $resolver->setAllowedTypes('render_checkbox_if', array('Closure', 'null'));
     return $this;
 }