You are here

function commerce_cart_flyout_block_alter in Commerce Cart Flyout 8

Implements hook_block_alter().

Replaces the commerce_cart CartBlock block with the commerce_cart_flyout one.

File

./commerce_cart_flyout.module, line 27

Code

function commerce_cart_flyout_block_alter(array &$info) {
  $info['commerce_cart']['class'] = CartBlock::class;
  $info['commerce_cart']['provider'] = 'commerce_cart_flyout';
}