public function CreditMessaging::blockSubmit in Commerce PayPal 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ CreditMessaging.php, line 161
Class
- CreditMessaging
- Provides a PayPal credit messaging block.
Namespace
Drupal\commerce_paypal\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['placement'] = $form_state
->getValue('placement');
$this->configuration['style'] = $form_state
->getValue('style');
$this->configuration['color'] = $form_state
->getValue('color');
$this->configuration['ratio'] = $form_state
->getValue('ratio');
$this->configuration['logo_type'] = $form_state
->getValue('logo_type');
$this->configuration['logo_position'] = $form_state
->getValue('logo_position');
$this->configuration['text_size'] = $form_state
->getValue('text_size');
$this->configuration['text_color'] = $form_state
->getValue('text_color');
}