protected function ContentExporter::processCommerce in Commerce Demo 8
Same name and namespace in other branches
- 8.2 src/ContentExporter.php \Drupal\commerce_demo\ContentExporter::processCommerce()
Processes the exported Commerce entity.
Parameters
array $export: The export array.
\Drupal\Core\Entity\ContentEntityInterface $entity: The Commerce entity.
Return value
array The processed export array.
1 call to ContentExporter::processCommerce()
- ContentExporter::export in src/
ContentExporter.php - Exports the given entity.
File
- src/
ContentExporter.php, line 189
Class
- ContentExporter
- Defines the content exporter.
Namespace
Drupal\commerce_demoCode
protected function processCommerce(array $export, ContentEntityInterface $entity) {
// Imported entities are always assigned to the default store.
unset($export['stores']);
return $export;
}