getMandatoryAttributes function
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,
);