public function PackageDeleteForm::submitForm in Ubercart 8.4
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- shipping/
uc_fulfillment/ src/ Form/ PackageDeleteForm.php, line 85
Class
- PackageDeleteForm
- Decides to unpackage products.
Namespace
Drupal\uc_fulfillment\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->package
->delete();
$form_state
->setRedirectUrl($this
->getCancelUrl());
}