public function FileField::processCckFieldValues in Drupal 8
Same name in this branch
- 8 core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php \Drupal\file\Plugin\migrate\cckfield\d6\FileField::processCckFieldValues()
- 8 core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php \Drupal\file\Plugin\migrate\cckfield\d7\FileField::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
- core/
modules/ file/ src/ Plugin/ migrate/ cckfield/ d6/ FileField.php, line 52
Class
- FileField
- Plugin annotation @MigrateCckField( id = "filefield", core = {6}, source_module = "filefield", destination_module = "file" )
Namespace
Drupal\file\Plugin\migrate\cckfield\d6Code
public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'd6_cck_file',
'source' => $field_name,
];
$migration
->mergeProcessOfProperty($field_name, $process);
}