Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['route']);
     $resolver->setDefaults(['route' => OptionInterface::GF_NULL]);
     $resolver->setAllowedTypes('route', 'string');
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['route', 'group_action']);
     $resolver->setDefaults(['route' => false, 'group_action' => false]);
     $resolver->setAllowedTypes('route', ['bool', 'string']);
     $resolver->setAllowedTypes('group_action', ['bool', 'string']);
 }
 /**
  * {@inheritdoc}
  */
 protected function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['row_action', 'context_action', 'route']);
     $resolver->setDefaults(['row_action' => false, 'context_action' => false, 'route' => false]);
     $resolver->setAllowedTypes('row_action', ['bool', 'string']);
     $resolver->setAllowedTypes('context_action', ['bool', 'string']);
     $resolver->setAllowedTypes('route', ['bool', 'string']);
 }