public function FileField::processCckFieldValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/Plugin/migrate/cckfield/FileField.php \Drupal\file\Plugin\migrate\cckfield\FileField::processCckFieldValues()
Apply any custom processing to the cck bundle migrations.
Parameters
\Drupal\migrate\Entity\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 CckFieldValues::fieldData().
Overrides MigrateCckFieldInterface::processCckFieldValues
File
- core/
modules/ file/ src/ Plugin/ migrate/ cckfield/ FileField.php, line 47 - Contains \Drupal\file\Plugin\migrate\cckfield\FileField.
Class
- FileField
- Plugin annotation @MigrateCckField( id = "filefield" )
Namespace
Drupal\file\Plugin\migrate\cckfieldCode
public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'd6_cck_file',
'source' => $field_name,
];
$migration
->mergeProcessOfProperty($field_name, $process);
}