/**
  * {@inheritDoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['frontend_handle'])) {
         $options['frontend_handle'] = 'redirect';
     }
     if (empty($options['route_parameters'])) {
         $options['route_parameters'] = [];
     }
     return parent::setOptions($options);
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     $this->setDefaultOptions($options);
     if (isset($options['entity_name'])) {
         $metadata = $this->metadataRegistry->getEntityMetadata($options['entity_name']);
         $options['max_element_count'] = $metadata->getMaxEntitiesCount();
         $options['label'] = $this->translator->trans('oro.entity_merge.action.merge', ['{{ label }}' => $this->translator->trans($metadata->get('label'))]);
     }
     return parent::setOptions($options);
 }
Exemple #3
0
 /**
  * {@inheritDoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['frontend_handle'])) {
         $options['frontend_handle'] = 'ajax';
     }
     if (empty($options['route'])) {
         $options['route'] = 'oro_datagrid_mass_action';
     }
     if (empty($options['route_parameters'])) {
         $options['route_parameters'] = [];
     }
     if (!isset($options['confirmation'])) {
         $options['confirmation'] = true;
     }
     return parent::setOptions($options);
 }
 /**
  * {@inheritDoc}
  */
 public function setOptions(ActionConfiguration $options)
 {
     if (empty($options['handler'])) {
         $options['handler'] = 'oro_email.mass_action.mark_handler';
     }
     if (empty($options['frontend_type'])) {
         $options['frontend_type'] = 'mark-email-mass';
     }
     if (empty($options['route'])) {
         $options['route'] = 'oro_email_mark_massaction';
     }
     if (empty($options['route_parameters'])) {
         $options['route_parameters'] = [];
     }
     if (empty($options['frontend_handle'])) {
         $options['frontend_handle'] = 'ajax';
     }
     $options['mark_type'] = MarkMassActionHandler::MARK_READ;
     $options['confirmation'] = false;
     return parent::setOptions($options);
 }