You are here

public function Manual::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 FulfillmentMethodPluginBase::submitConfigurationForm

File

shipping/uc_fulfillment/src/Plugin/Ubercart/FulfillmentMethod/Manual.php, line 73

Class

Manual
Provides a manual fulfillment plugin.

Namespace

Drupal\uc_fulfillment\Plugin\Ubercart\FulfillmentMethod

Code

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');
}