Bläddra i källkod

ProductFamilySolver : ajout méthode hasOrganicStrictLabel

develop
Guillaume Bourgeois 1 år sedan
förälder
incheckning
705e192891
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. +5
    -0
      Solver/Product/ProductFamilySolver.php

+ 5
- 0
Solver/Product/ProductFamilySolver.php Visa fil

@@ -434,6 +434,11 @@ class ProductFamilySolver
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$organicLabels);
}

public function hasOrganicStrictLabel(ProductFamilyInterface $productFamily)
{
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$organicStrictLabels);
}

public function hasGeographicLabel(ProductFamilyInterface $productFamily)
{
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$geographicLabels);

Laddar…
Avbryt
Spara