You are here

public function AddressField::defineValueProcessPipeline in Address 8

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 AddressField::defineValueProcessPipeline()
AddressField::processFieldValues in src/Plugin/migrate/field/AddressField.php
Defines the process pipeline for field values.

File

src/Plugin/migrate/field/AddressField.php, line 44

Class

AddressField
Field migration plugin from D7 to D8.

Namespace

Drupal\address\Plugin\migrate\field

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'addressfield',
    'source' => $field_name,
  ];
  $migration
    ->mergeProcessOfProperty($field_name, $process);
}