You are here

private function CartButtonBlock::getIconImage in Commerce Cart Blocks 8

Gets the image for the icon.

1 call to CartButtonBlock::getIconImage()
CartButtonBlock::buildIcon in src/Plugin/Block/CartButtonBlock.php
Builds the icon output.

File

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

Class

CartButtonBlock
Provides a cart block.

Namespace

Drupal\commerce_cart_blocks\Plugin\Block

Code

private function getIconImage() {
  return [
    '#theme' => 'image',
    '#uri' => drupal_get_path('module', 'commerce') . '/icons/ffffff/cart.png',
    '#alt' => $this
      ->t('Shopping cart'),
  ];
}