You are here

protected function CartButtonBlock::getCartViews in Commerce Cart Blocks 8

Gets the cart views for each cart.

Return value

array An array of view ids keyed by cart order ID.

Overrides CartBlockBase::getCartViews

1 call to CartButtonBlock::getCartViews()
CartButtonBlock::build in src/Plugin/Block/CartButtonBlock.php
Builds the cart block.

File

src/Plugin/Block/CartButtonBlock.php, line 163

Class

CartButtonBlock
Provides a cart block.

Namespace

Drupal\commerce_cart_blocks\Plugin\Block

Code

protected function getCartViews() {
  $cartViews = [];
  if ($this->configuration['dropdown']) {
    $cartViews = parent::getCartViews();
  }
  return $cartViews;
}