Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(array('data'));
     $resolver->addAllowedTypes('data', 'string');
     return $this;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->remove(array('editable'));
     $resolver->setDefaults(array('orderable' => false, 'searchable' => false));
     return $this;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(array('data'));
     $resolver->setDefault('count', false);
     $resolver->setDefault('count_action', array());
     $resolver->addAllowedTypes('data', 'string');
     $resolver->setAllowedTypes('count', 'bool');
     $resolver->addAllowedTypes('count_action', 'array');
     return $this;
 }