+++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php
@@ -0,0 +1,55 @...

Contribution Date
Technology
Contribution Project
Contribution Details
  1. +++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + $purchasable_entity = $items->getEntity();

    I think it should be $item->getEntity()

  2. +++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + $number = $resolved_price->getNumber();

    Can we mention the data type here.

  3. +++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + $currency = $this->currencyStorage->load($resolved_price->getCurrencyCode());

    Can we mention the data type here as well.

  4. +++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + '#markup' => '<del>' . $default_price . '</del>&nbsp;' . $new_price,

    It is recommended to use #plain_text here, or Xss::filterAdmin()

Contribution Author
Files count
0
Patches count
0