private function CartButtonBlock::buildIcon in Commerce Cart Blocks 8
Builds the icon output.
1 call to CartButtonBlock::buildIcon()
- CartButtonBlock::build in src/
Plugin/ Block/ CartButtonBlock.php - Builds the cart block.
File
- src/
Plugin/ Block/ CartButtonBlock.php, line 122
Class
- CartButtonBlock
- Provides a cart block.
Namespace
Drupal\commerce_cart_blocks\Plugin\BlockCode
private function buildIcon() {
$iconType = $this->configuration['icon_type'];
return $iconType === 'image' ? $this
->getIconImage() : $this
->getIconTag();
}