public function USPSRateBase::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
2 methods override USPSRateBase::submitConfigurationForm()
- USPSDomesticRate::submitConfigurationForm in shipping/
uc_usps/ src/ Plugin/ Ubercart/ ShippingQuote/ USPSDomesticRate.php - Form submission handler.
- USPSInternationalRate::submitConfigurationForm in shipping/
uc_usps/ src/ Plugin/ Ubercart/ ShippingQuote/ USPSInternationalRate.php - Form submission handler.
File
- shipping/
uc_usps/ src/ Plugin/ Ubercart/ ShippingQuote/ USPSRateBase.php, line 69
Class
- USPSRateBase
- Common functionality for USPS shipping quotes plugins.
Namespace
Drupal\uc_usps\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');
}