Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: extends AbstractDataSetContext
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['value_column', 'label_column']);
     $resolver->setDefaults(['value_column' => 'id', 'label_column' => 'name']);
     $resolver->setAllowedTypes('value_column', 'string');
     $resolver->setAllowedTypes('label_column', 'string');
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['children_column', 'hierarchy_column']);
     $resolver->setDefaults(['children_column' => 'children', 'hierarchy_column' => 'hierarchy', 'pagination' => false]);
     $resolver->setAllowedTypes('children_column', 'string');
     $resolver->setAllowedTypes('hierarchy_column', 'string');
 }