public function ShippingQuoteMethodForm::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 EntityForm::buildForm
File
- shipping/
uc_quote/ src/ Form/ ShippingQuoteMethodForm.php, line 49
Class
- ShippingQuoteMethodForm
- Builds the form to edit shipping quote method entities.
Namespace
Drupal\uc_quote\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this->plugin = $this->shippingQuoteManager
->createInstance($this->entity
->getPluginId(), $this->entity
->getPluginConfiguration());
return parent::buildForm($form, $form_state);
}