You are here

public function CartBlock::defaultConfiguration in Commerce Cart Blocks 8

Overrides CartBlockBase::defaultConfiguration

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

File

src/Plugin/Block/CartBlock.php, line 21

Class

CartBlock
Provides a cart block.

Namespace

Drupal\commerce_cart_blocks\Plugin\Block

Code

public function defaultConfiguration() {
  $defaultConfig = [
    'display_heading' => FALSE,
    'heading_text' => '@items in your cart',
    'show_items' => TRUE,
  ];
  return array_merge(parent::defaultConfiguration(), $defaultConfig);
}