You are here

public function VideoItem::processCckFieldValues in Video 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/cckfield/VideoItem.php \Drupal\video\Plugin\migrate\cckfield\VideoItem::processCckFieldValues()

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 CckFieldPluginBase::processCckFieldValues

File

src/Plugin/migrate/cckfield/VideoItem.php, line 37

Class

VideoItem
Plugin annotation @MigrateCckField( id = "video", core = {7} )

Namespace

Drupal\video\Plugin\migrate\cckfield

Code

public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'iterator',
    'source' => $field_name,
    'process' => [
      'target_id' => 'fid',
    ],
  ];
  $migration
    ->mergeProcessOfProperty($field_name, $process);
}