You are here

protected function ContentExporter::processAttributeValue in Commerce Demo 8

Same name and namespace in other branches
  1. 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_demo

Code

protected function processAttributeValue(array $export, ProductAttributeValueInterface $attribute_value) {

  // Don't export the weight for now.
  unset($export['weight']);
  return $export;
}