예제 #1
0
 /**
  * @param array $source
  * @param array $expected
  * @dataProvider setOptionsDataProvider
  */
 public function testSetOptions(array $source, array $expected)
 {
     $this->action->setOptions(ActionConfiguration::create($source));
     $actual = $this->action->getOptions();
     foreach ($expected as $name => $value) {
         $this->assertEquals($value, $actual->offsetGet($name));
     }
 }
 /**
  * {@inheritDoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['handler'])) {
         $options['handler'] = 'oro_datagrid.extension.mass_action.handler.delete';
     }
     return parent::setOptions($options);
 }
 /**
  * {@inheritdoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['handler'])) {
         $options['handler'] = 'mass_delete';
     }
     if (empty($options['route'])) {
         $options['route'] = 'pim_datagrid_mass_action';
     }
     return parent::setOptions($options);
 }
 /**
  * {@inheritDoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['handler'])) {
         $options['handler'] = 'diamante.user.mass.action.reset_pwd.handler';
     }
     if (empty($options['frontend_type'])) {
         $options['frontend_type'] = 'reset-pwd-mass';
     }
     return parent::setOptions($options);
 }
 /**
  * {@inheritdoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (!isset($options['frontend_type'])) {
         $options['frontend_type'] = 'add-products-mass';
     }
     if (!isset($options['handler'])) {
         $options['handler'] = 'orob2b_shopping_list.mass_action.add_products_handler';
     }
     if (!isset($options['route'])) {
         $options['route'] = 'orob2b_shopping_list_add_products_massaction';
     }
     if (!isset($options['route_parameters'])) {
         $options['route_parameters'] = [];
     }
     if (!isset($options['frontend_handle'])) {
         $options['frontend_handle'] = 'ajax';
     }
     $options['confirmation'] = false;
     return parent::setOptions($options);
 }