public function CommerceCurrencyResolverAmountTrait::submitConfigurationForm in Commerce Currency Resolver 8
File
- src/
Plugin/ Commerce/ CommerceCurrencyResolverAmountTrait.php, line 72
Class
- CommerceCurrencyResolverAmountTrait
- Provides common configuration for fixed amount off offers.
Namespace
Drupal\commerce_currency_resolver\Plugin\CommerceCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
if (!$form_state
->getErrors()) {
$values = $form_state
->getValue($form['#parents']);
$this->configuration['fields'] = $values['fields'];
}
}