You are here

public function CartBlock::blockSubmit in Ubercart 8.4

Overrides BlockPluginTrait::blockSubmit

File

uc_cart/src/Plugin/Block/CartBlock.php, line 136

Class

CartBlock
Provides the shopping cart block.

Namespace

Drupal\uc_cart\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['hide_empty'] = $form_state
    ->getValue('hide_empty');
  $this->configuration['show_image'] = $form_state
    ->getValue('show_image');
  $this->configuration['collapsible'] = $form_state
    ->getValue('collapsible');
  $this->configuration['collapsed'] = $form_state
    ->getValue('collapsed');
}