Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: extends AbstractDataSetContext
Exemplo n.º 1
0
 /**
  * {@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');
 }
Exemplo n.º 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');
 }