protected function ContentExporter::processAttributeValue in Commerce Demo 8
Same name and namespace in other branches
- 8.2 src/ContentExporter.php \Drupal\commerce_demo\ContentExporter::processAttributeValue()
Processes the exported attribute value.
Parameters
array $export: The export array.
\Drupal\commerce_product\Entity\ProductAttributeValueInterface $attribute_value: The attribute value.
Return value
array The processed export array.
1 call to ContentExporter::processAttributeValue()
- ContentExporter::export in src/
ContentExporter.php - Exports the given entity.
File
- src/
ContentExporter.php, line 247
Class
- ContentExporter
- Defines the content exporter.
Namespace
Drupal\commerce_demoCode
protected function processAttributeValue(array $export, ProductAttributeValueInterface $attribute_value) {
// Don't export the weight for now.
unset($export['weight']);
return $export;
}