Contribution Date
Technology
Contribution Project
Contribution Details
-
+++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + $purchasable_entity = $items->getEntity();
I think it should be
$item->getEntity()
-
+++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + $number = $resolved_price->getNumber();
Can we mention the data type here.
-
+++ 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.
-
+++ b/src/Plugin/Field/FieldFormatter/PriceRuleFormatter.php @@ -0,0 +1,55 @@ + '#markup' => '<del>' . $default_price . '</del> ' . $new_price,
It is recommended to use
#plain_text
here, orXss::filterAdmin()
Contribution Issue Link
Files count
0
Patches count
0