You are here

public function NameItem::processCckFieldValues in Name Field 8

File

src/Plugin/migrate/cckfield/NameItem.php, line 41

Class

NameItem
Name migrate plugin.

Namespace

Drupal\name\Plugin\migrate\cckfield

Code

public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'iterator',
    'source' => $field_name,
    'process' => [
      'title' => 'title',
      'given' => 'given',
      'middle' => 'middle',
      'family' => 'family',
      'generational' => 'generational',
      'credentials' => 'credentials',
    ],
  ];
  $migration
    ->mergeProcessOfProperty($field_name, $process);
}