You are here

public function CartButtonBlock::blockSubmit in Commerce Cart Blocks 8

Overrides CartBlock::blockSubmit

File

src/Plugin/Block/CartButtonBlock.php, line 76

Class

CartButtonBlock
Provides a cart block.

Namespace

Drupal\commerce_cart_blocks\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['dropdown'] = $form_state
    ->getValue('commerce_cart_dropdown');
  $this->configuration['button_label'] = $form_state
    ->getValue('button_label');
  $this->configuration['icon_type'] = $form_state
    ->getValue('icon_type');
  $this->configuration['icon_class'] = $form_state
    ->getValue('icon_class');
  parent::blockSubmit($form, $form_state);
}