Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / file / src / Plugin / migrate / field / d7 / FileField.php
1 <?php
2
3 namespace Drupal\file\Plugin\migrate\field\d7;
4
5 use Drupal\file\Plugin\migrate\field\d6\FileField as D6FileField;
6 use Drupal\migrate\Plugin\MigrationInterface;
7
8 /**
9  * @MigrateField(
10  *   id = "file",
11  *   core = {7}
12  * )
13  */
14 class FileField extends D6FileField {
15
16   /**
17    * {@inheritdoc}
18    */
19   public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
20     $process = [
21       'plugin' => 'sub_process',
22       'source' => $field_name,
23       'process' => [
24         'target_id' => 'fid',
25         'display' => 'display',
26         'description' => 'description',
27       ],
28     ];
29     $migration->mergeProcessOfProperty($field_name, $process);
30   }
31
32 }