protected function CartBlock::buildItems in Commerce Cart Blocks 8
1 call to CartBlock::buildItems()
- CartBlock::build in src/
Plugin/ Block/ CartBlock.php - Builds the cart block.
File
- src/
Plugin/ Block/ CartBlock.php, line 100
Class
- CartBlock
- Provides a cart block.
Namespace
Drupal\commerce_cart_blocks\Plugin\BlockCode
protected function buildItems() {
$showItems = $this->configuration['show_items'];
$items = [];
if ($showItems) {
$items = $this
->getCartViews();
}
return $items;
}