public function CommerceLineItemReference::defineValueProcessPipeline in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/commerce/src/Plugin/migrate/field/commerce1/CommerceLineItemReference.php \Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1\CommerceLineItemReference::defineValueProcessPipeline()
- 3.0.x modules/commerce/src/Plugin/migrate/field/commerce1/CommerceLineItemReference.php \Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1\CommerceLineItemReference::defineValueProcessPipeline()
Apply any custom processing to the field bundle migrations.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
string $field_name: The field name we're processing the value for.
array $data: The array of field data from FieldValues::fieldData().
Overrides FieldPluginBase::defineValueProcessPipeline
1 call to CommerceLineItemReference::defineValueProcessPipeline()
- CommerceLineItemReference::processFieldValues in modules/
commerce/ src/ Plugin/ migrate/ field/ commerce1/ CommerceLineItemReference.php - Defines the process pipeline for field values.
File
- modules/
commerce/ src/ Plugin/ migrate/ field/ commerce1/ CommerceLineItemReference.php, line 43
Class
- CommerceLineItemReference
- Field migration for commerce_line item.
Namespace
Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1Code
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$destination_field_name = isset($this->fieldNameMap[$field_name]) ? $this->fieldNameMap[$field_name] : $field_name;
$process = [
[
'plugin' => 'migration_lookup',
'migration' => 'commerce1_order_item',
'source' => $field_name,
'no_stub' => TRUE,
],
[
'plugin' => 'skip_on_empty',
'method' => 'process',
],
];
$migration
->setProcessOfProperty($destination_field_name, $process);
}