public function WeightQuote::submitConfigurationForm in Ubercart 8.4
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
File
- shipping/
uc_quote/ src/ Plugin/ Ubercart/ ShippingQuote/ WeightQuote.php, line 72
Class
- WeightQuote
- Assigns a shipping rate to products based on weight.
Namespace
Drupal\uc_quote\Plugin\Ubercart\ShippingQuoteCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['base_rate'] = $form_state
->getValue('base_rate');
$this->configuration['product_rate'] = $form_state
->getValue('product_rate');
$this->configuration['field'] = $form_state
->getValue('field');
}