public function PackageCancelForm::buildForm in Ubercart 8.4
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- shipping/
uc_fulfillment/ src/ Form/ PackageCancelForm.php, line 104
Class
- PackageCancelForm
- Confirms cancellation of a package's shipment.
Namespace
Drupal\uc_fulfillment\FormCode
public function buildForm(array $form, FormStateInterface $form_state, OrderInterface $uc_order = NULL, PackageInterface $uc_package = NULL) {
$this->order_id = $uc_order
->id();
$this->package = $uc_package;
return parent::buildForm($form, $form_state);
}