Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LinkPrice.php
Go to the documentation of this file.
1 <?php
8 
11 
16 class LinkPrice extends RegularPrice implements LinkPriceInterface
17 {
21  const PRICE_CODE = 'link_price';
22 
27  public function getLinkAmount(Link $link)
28  {
29  $price = $link->getPrice();
30  $convertedPrice = $this->priceCurrency->convertAndRound($price);
31  return $this->calculator->getAmount($convertedPrice, $link->getProduct());
32  }
33 }
$price