You are here

public function Location::defineValueProcessPipeline in Geolocation Field 8.3

Same name in this branch
  1. 8.3 src/Plugin/migrate/field/Location.php \Drupal\geolocation\Plugin\migrate\field\Location::defineValueProcessPipeline()
  2. 8.3 modules/geolocation_address/src/Plugin/migrate/field/Location.php \Drupal\geolocation_address\Plugin\migrate\field\Location::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

File

src/Plugin/migrate/field/Location.php, line 52

Class

Location
A migrate field plugin for Drupal 7 Location CCK field values.

Namespace

Drupal\geolocation\Plugin\migrate\field

Code

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