getMandatoryAttributes function

List<Attribute> getMandatoryAttributes(
  1. Product product,
  2. List<String> attributeGroupOrder,
  3. Set<String> attributesToExcludeIfStatusIsUnknown,
  4. ProductPreferences preferences,
)

Returns the mandatory attributes, ordered by attribute group order

Implementation

List<Attribute> getMandatoryAttributes(
  Product product,
  List<String> attributeGroupOrder,
  Set<String> attributesToExcludeIfStatusIsUnknown,
  ProductPreferences preferences,
) => getSortedAttributes(
  product,
  attributeGroupOrder,
  attributesToExcludeIfStatusIsUnknown,
  preferences,
  PreferenceImportance.ID_MANDATORY,
);