public function CartButtonBlock::defaultConfiguration in Commerce Cart Blocks 8
Overrides CartBlock::defaultConfiguration
File
- src/
Plugin/ Block/ CartButtonBlock.php, line 22
Class
- CartButtonBlock
- Provides a cart block.
Namespace
Drupal\commerce_cart_blocks\Plugin\BlockCode
public function defaultConfiguration() {
$defaultConfig = [
'dropdown' => TRUE,
'button_label' => '@items',
'icon_type' => 'image',
'icon_class' => 'fa fa-shopping-cart',
];
return array_merge(parent::defaultConfiguration(), $defaultConfig);
}