ProductOpener::KnowledgePanelsContribution - Generate knowledge panels around contribution
This is a subpart of Knowledge Panels where we concentrate around contribution information
Create all knowledge panels for a tag, with strings (descriptions, recommendations etc.) in a specific language, and return them in an array of panels.
Hash structure for the tag. Can be empty. Will be used to return the panels.
Returned panels contain both data and strings intended to be displayed to users. This parameter sets the desired language for the user facing strings.
If $target_lc is equal to "data", no strings are returned.
Needed for some country specific panels like the Eco-Score.
Defines how some panels should be created (or not created)
- deactivate_[panel_id] : do not create a default panel -- currently unimplemented - activate_[panel_id] : create an on demand panel -- currently only for physical_activities panel
Panels are returned in the "knowledge_panels_[$target_lc]" hash of the tag reference passed as input.
Creates a knowledge panel to show the packagings materials stats of a category
Canonical category id.
Data about the tag, will store the knowledge panel.
Returned attributes contain both data and strings intended to be displayed to users. This parameter sets the desired language for the user facing strings.