ProductOpener::PackagingFoodContact
Determine if packaging components are in contact with the food.
This function is a product service that can be run through ProductOpener::ApiProductServices
product object reference
reference to a hash of product fields that have been created or updated
reference to an array of error messages
Find packaging components that match specific conditions (e.g material, shape, recycling). Conditions are matched using the taxonomy, a parent in the condition matches more specific children. (e.g. "en:plastic" matches "en:pet" and "en:hdpe")
Hash reference with conditions like material, shape, recycling as keys, and a value or an array of values as values.
Array with: - a reference to an array of packaging components that match the conditions, - a reference to an array of packaging components that do not match the conditions.
Determine if packaging components are in contact with the food.