You are here

public function CartBlockBase::blockSubmit in Commerce Cart Blocks 8

Overrides BlockPluginTrait::blockSubmit

1 call to CartBlockBase::blockSubmit()
CartBlock::blockSubmit in src/Plugin/Block/CartBlock.php
1 method overrides CartBlockBase::blockSubmit()
CartBlock::blockSubmit in src/Plugin/Block/CartBlock.php

File

src/Plugin/Block/CartBlockBase.php, line 147

Class

CartBlockBase
CartBlockBase class.

Namespace

Drupal\commerce_cart_blocks\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this
    ->setConfigurationValue('hide_if_empty', $form_state
    ->getValue('hide_if_empty'));
  $this
    ->setConfigurationValue('display_links', $form_state
    ->getValue('display_links'));
  $this
    ->setConfigurationValue('cart_link_text', $form_state
    ->getValue('cart_link_text'));
  $this
    ->setConfigurationValue('checkout_link_text', $form_state
    ->getValue('checkout_link_text'));
  $this
    ->setConfigurationValue('count_text_plural', $form_state
    ->getValue('count_text_plural'));
  $this
    ->setConfigurationValue('count_text_singular', $form_state
    ->getValue('count_text_singular'));
  $this
    ->setConfigurationValue('count_text_empty', $form_state
    ->getValue('count_text_empty'));
}