public function ShippingQuoteMethodListBuilder::submitAddMethod in Ubercart 8.4
Form submission handler for adding a new method.
File
- shipping/
uc_quote/ src/ ShippingQuoteMethodListBuilder.php, line 153
Class
- ShippingQuoteMethodListBuilder
- Provides a listing of shipping quote method entities.
Namespace
Drupal\uc_quoteCode
public function submitAddMethod(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.uc_quote_method.add_form', [
'plugin_id' => $form_state
->getValue('plugin'),
]);
}